From b5e9546ad7611f7727aafc9202f9d04f592deddf Mon Sep 17 00:00:00 2001 From: mikeb Date: Sun, 21 Jan 2018 18:51:19 +0000 Subject: [PATCH] Improve panic message --- sys/dev/pv/xen.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/sys/dev/pv/xen.c b/sys/dev/pv/xen.c index 2a16b9a11e6..3555f83a313 100644 --- a/sys/dev/pv/xen.c +++ b/sys/dev/pv/xen.c @@ -1,4 +1,4 @@ -/* $OpenBSD: xen.c,v 1.91 2017/11/26 16:11:45 mikeb Exp $ */ +/* $OpenBSD: xen.c,v 1.92 2018/01/21 18:51:19 mikeb Exp $ */ /* * Copyright (c) 2015, 2016, 2017 Mike Belopuhov @@ -1204,11 +1204,10 @@ xen_grant_table_remove(struct xen_softc *sc, grant_ref_t ref) loop = 0; while (atomic_cas_uint(ptr, flags, GTF_invalid) != flags) { if (loop++ > 10) { - panic("%s: grant table reference %u is held " - "by domain %d: frame %#x flags %#x\n", - sc->sc_dev.dv_xname, ref + ge->ge_start, - ge->ge_table[ref].domid, ge->ge_table[ref].frame, - ge->ge_table[ref].flags); + panic("grant table reference %u is held " + "by domain %d: frame %#x flags %#x", + ref + ge->ge_start, ge->ge_table[ref].domid, + ge->ge_table[ref].frame, ge->ge_table[ref].flags); } #if (defined(__amd64__) || defined(__i386__)) __asm volatile("pause": : : "memory"); -- 2.20.1