summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Belopuhov <mikeb@cvs.openbsd.org>2018-01-21 18:51:20 +0000
committerMike Belopuhov <mikeb@cvs.openbsd.org>2018-01-21 18:51:20 +0000
commit059df3f29c4e28d06a8c77722e41eda688b888cf (patch)
treef4363da85de945eeebbacf85f22283bded52a7c7
parent7782bbabd41abae3f300f70fee4e4a3eab8aa3c5 (diff)
Improve panic message
-rw-r--r--sys/dev/pv/xen.c11
1 files 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");