diff options
| author | Ed Maste <emaste@FreeBSD.org> | 2011-02-04 15:45:48 +0000 |
|---|---|---|
| committer | Ed Maste <emaste@FreeBSD.org> | 2011-02-04 15:45:48 +0000 |
| commit | 729e10b9e24f9414ada2e7d79434fe672dbc9aa4 (patch) | |
| tree | 18c9f5014f40d259504170fed4f3c141f3f21d56 /sys/dev/aac | |
| parent | 459d0e830db996f62c1b89f8d0e0bef2746e88d4 (diff) | |
Notes
Diffstat (limited to 'sys/dev/aac')
| -rw-r--r-- | sys/dev/aac/aacvar.h | 22 |
1 files changed, 8 insertions, 14 deletions
diff --git a/sys/dev/aac/aacvar.h b/sys/dev/aac/aacvar.h index 14f1933edf6b..61f3c5ba0679 100644 --- a/sys/dev/aac/aacvar.h +++ b/sys/dev/aac/aacvar.h @@ -537,9 +537,8 @@ static __inline void \ 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("aac: command is on another queue"); \ + panic("aac: command %p is on another queue, flags = %#x", \ + cm, cm->cm_flags); \ } \ TAILQ_INSERT_TAIL(&cm->cm_sc->aac_ ## name, cm, cm_link); \ cm->cm_flags |= AAC_ON_ ## index; \ @@ -549,9 +548,8 @@ static __inline void \ 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("aac: command is on another queue"); \ + panic("aac: command %p is on another queue, flags = %#x", \ + cm, cm->cm_flags); \ } \ TAILQ_INSERT_HEAD(&cm->cm_sc->aac_ ## name, cm, cm_link); \ cm->cm_flags |= AAC_ON_ ## index; \ @@ -564,10 +562,8 @@ aac_dequeue_ ## name (struct aac_softc *sc) \ \ if ((cm = TAILQ_FIRST(&sc->aac_ ## name)) != NULL) { \ if ((cm->cm_flags & AAC_ON_ ## index) == 0) { \ - printf("command %p not in queue, flags = %#x, " \ - "bit = %#x\n", cm, cm->cm_flags, \ - AAC_ON_ ## index); \ - panic("aac: command not in queue"); \ + panic("aac: command %p not in queue, flags = %#x, bit = %#x", \ + cm, cm->cm_flags, AAC_ON_ ## index); \ } \ TAILQ_REMOVE(&sc->aac_ ## name, cm, cm_link); \ cm->cm_flags &= ~AAC_ON_ ## index; \ @@ -579,10 +575,8 @@ static __inline void \ aac_remove_ ## name (struct aac_command *cm) \ { \ if ((cm->cm_flags & AAC_ON_ ## index) == 0) { \ - printf("command %p not in queue, flags = %#x, " \ - "bit = %#x\n", cm, cm->cm_flags, \ - AAC_ON_ ## index); \ - panic("aac: command not in queue"); \ + panic("aac: command %p not in queue, flags = %#x, bit = %#x", \ + cm, cm->cm_flags, AAC_ON_ ## index); \ } \ TAILQ_REMOVE(&cm->cm_sc->aac_ ## name, cm, cm_link); \ cm->cm_flags &= ~AAC_ON_ ## index; \ |
