summaryrefslogtreecommitdiffstats
path: root/sys/dev/aac
diff options
context:
space:
mode:
authoremaste <emaste@FreeBSD.org>2011-02-03 03:07:11 +0000
committeremaste <emaste@FreeBSD.org>2011-02-03 03:07:11 +0000
commitaef7d099b3942ac43f7510d624d873ae4a76a5c2 (patch)
tree6e12a5f9f3e785f842ed248c8288c395238147b2 /sys/dev/aac
parentdc94d2f8147d94a16fa765ded5f70a96fdca151e (diff)
downloadFreeBSD-src-aef7d099b3942ac43f7510d624d873ae4a76a5c2.zip
FreeBSD-src-aef7d099b3942ac43f7510d624d873ae4a76a5c2.tar.gz
Include driver name in panic string, to make it easier to find these should
the panic ever occur.
Diffstat (limited to 'sys/dev/aac')
-rw-r--r--sys/dev/aac/aacvar.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/aac/aacvar.h b/sys/dev/aac/aacvar.h
index 2371ad2..14f1933 100644
--- a/sys/dev/aac/aacvar.h
+++ b/sys/dev/aac/aacvar.h
@@ -539,7 +539,7 @@ aac_enqueue_ ## name (struct aac_command *cm) \
if ((cm->cm_flags & AAC_ON_AACQ_MASK) != 0) { \
printf("command %p is on another queue, flags = %#x\n", \
cm, cm->cm_flags); \
- panic("command is on another queue"); \
+ panic("aac: command is on another queue"); \
} \
TAILQ_INSERT_TAIL(&cm->cm_sc->aac_ ## name, cm, cm_link); \
cm->cm_flags |= AAC_ON_ ## index; \
@@ -551,7 +551,7 @@ aac_requeue_ ## name (struct aac_command *cm) \
if ((cm->cm_flags & AAC_ON_AACQ_MASK) != 0) { \
printf("command %p is on another queue, flags = %#x\n", \
cm, cm->cm_flags); \
- panic("command is on another queue"); \
+ panic("aac: command is on another queue"); \
} \
TAILQ_INSERT_HEAD(&cm->cm_sc->aac_ ## name, cm, cm_link); \
cm->cm_flags |= AAC_ON_ ## index; \
@@ -567,7 +567,7 @@ aac_dequeue_ ## name (struct aac_softc *sc) \
printf("command %p not in queue, flags = %#x, " \
"bit = %#x\n", cm, cm->cm_flags, \
AAC_ON_ ## index); \
- panic("command not in queue"); \
+ panic("aac: command not in queue"); \
} \
TAILQ_REMOVE(&sc->aac_ ## name, cm, cm_link); \
cm->cm_flags &= ~AAC_ON_ ## index; \
@@ -582,7 +582,7 @@ aac_remove_ ## name (struct aac_command *cm) \
printf("command %p not in queue, flags = %#x, " \
"bit = %#x\n", cm, cm->cm_flags, \
AAC_ON_ ## index); \
- panic("command not in queue"); \
+ panic("aac: command not in queue"); \
} \
TAILQ_REMOVE(&cm->cm_sc->aac_ ## name, cm, cm_link); \
cm->cm_flags &= ~AAC_ON_ ## index; \
OpenPOWER on IntegriCloud