Author: emaste
Date: Thu Feb  3 03:07:11 2011
New Revision: 218208
URL: http://svn.freebsd.org/changeset/base/218208

Log:
  Include driver name in panic string, to make it easier to find these should
  the panic ever occur.

Modified:
  head/sys/dev/aac/aacvar.h

Modified: head/sys/dev/aac/aacvar.h
==============================================================================
--- head/sys/dev/aac/aacvar.h   Thu Feb  3 02:14:53 2011        (r218207)
+++ head/sys/dev/aac/aacvar.h   Thu Feb  3 03:07:11 2011        (r218208)
@@ -539,7 +539,7 @@ aac_enqueue_ ## name (struct aac_command
        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
        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 *
                        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 
                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;                              \
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to