mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Include driver name in panic string, to make it easier to find these should
the panic ever occur.
This commit is contained in:
parent
2ad1c92d96
commit
7f6563d13c
1 changed files with 4 additions and 4 deletions
|
|
@ -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; \
|
||||
|
|
|
|||
Loading…
Reference in a new issue