Date: Thu, 3 Feb 2011 03:07:11 +0000 (UTC) From: Ed Maste <emaste@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r218208 - head/sys/dev/aac Message-ID: <201102030307.p1337B1U031210@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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; \
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201102030307.p1337B1U031210>