summaryrefslogtreecommitdiffstats
path: root/sys/cam
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2002-11-14 05:03:11 +0000
committerimp <imp@FreeBSD.org>2002-11-14 05:03:11 +0000
commit4ae1f7bf1de5788dd6f9f7efdbac68186e322c5b (patch)
tree310fe0856aafe14fdc0a81b999d08505476cb566 /sys/cam
parentdfa993f696df610240e67a7ca2e65c6f3a4742f1 (diff)
downloadFreeBSD-src-4ae1f7bf1de5788dd6f9f7efdbac68186e322c5b.zip
FreeBSD-src-4ae1f7bf1de5788dd6f9f7efdbac68186e322c5b.tar.gz
Panic message should end with \n.
Reviewed by: ken a while ago.
Diffstat (limited to 'sys/cam')
-rw-r--r--sys/cam/scsi/scsi_low.c22
-rw-r--r--sys/cam/scsi/scsi_sa.c2
2 files changed, 12 insertions, 12 deletions
diff --git a/sys/cam/scsi/scsi_low.c b/sys/cam/scsi/scsi_low.c
index 610746e..afda113 100644
--- a/sys/cam/scsi/scsi_low.c
+++ b/sys/cam/scsi/scsi_low.c
@@ -1805,7 +1805,7 @@ scsi_low_alloc_li(ti, lun, alloc)
li = SCSI_LOW_MALLOC(ti->ti_lunsize);
if (li == NULL)
- panic("no lun info mem\n");
+ panic("no lun info mem");
SCSI_LOW_BZERO(li, ti->ti_lunsize);
li->li_lun = lun;
@@ -1847,7 +1847,7 @@ scsi_low_alloc_ti(slp, targ)
ti = SCSI_LOW_MALLOC(slp->sl_targsize);
if (ti == NULL)
- panic("%s short of memory\n", slp->sl_xname);
+ panic("%s short of memory", slp->sl_xname);
SCSI_LOW_BZERO(ti, slp->sl_targsize);
ti->ti_id = targ;
@@ -1954,7 +1954,7 @@ scsi_low_timeout_check(slp)
cb->ccb_flags |= CCB_NORETRY;
cb->ccb_error |= SELTIMEOUTIO;
if (scsi_low_revoke_ccb(slp, cb, 1) != NULL)
- panic("%s: ccb not finished\n", slp->sl_xname);
+ panic("%s: ccb not finished", slp->sl_xname);
}
if (slp->sl_Tnexus == NULL)
@@ -2078,7 +2078,7 @@ scsi_low_abort_ccb(slp, cb)
else if ((cb->ccb_flags & CCB_DISCQ) != 0)
{
if (scsi_low_revoke_ccb(slp, cb, 0) == NULL)
- panic("%s: revoked ccb done\n", slp->sl_xname);
+ panic("%s: revoked ccb done", slp->sl_xname);
cb->ccb_flags |= CCB_STARTQ;
TAILQ_INSERT_HEAD(&slp->sl_start, cb, ccb_chain);
@@ -2089,7 +2089,7 @@ scsi_low_abort_ccb(slp, cb)
else
{
if (scsi_low_revoke_ccb(slp, cb, 1) != NULL)
- panic("%s: revoked ccb retried\n", slp->sl_xname);
+ panic("%s: revoked ccb retried", slp->sl_xname);
}
return 0;
}
@@ -2114,7 +2114,7 @@ scsi_low_attach(slp, openings, ntargs, nluns, targsize, lunsize)
#endif /* SCSI_LOW_INTERFACE_CAM */
if (slp->sl_osdep_fp == NULL)
- panic("scsi_low: interface not spcified\n");
+ panic("scsi_low: interface not spcified");
if (ntargs > SCSI_LOW_NTARGETS)
{
@@ -2384,7 +2384,7 @@ scsi_low_setup_start(slp, ti, li, cb)
return SCSI_LOW_START_QTAG;
default:
- panic("%s: no setup phase\n", slp->sl_xname);
+ panic("%s: no setup phase", slp->sl_xname);
}
return SCSI_LOW_START_NO_QTAG;
@@ -2440,7 +2440,7 @@ scsi_low_start(slp)
if (slp->sl_Tnexus || slp->sl_Lnexus || slp->sl_Qnexus)
{
scsi_low_info(slp, NULL, "NEXUS INCOSISTENT");
- panic("%s: inconsistent\n", slp->sl_xname);
+ panic("%s: inconsistent", slp->sl_xname);
}
#endif /* SCSI_LOW_DIAGNOSTIC */
@@ -3773,7 +3773,7 @@ cmd_link_start:
cb->ccb_tag = SCSI_LOW_UNKTAG;
cb->ccb_otag = SCSI_LOW_UNKTAG;
if (scsi_low_done(slp, cb) == SCSI_LOW_DONE_RETRY)
- panic("%s: linked ccb retried\n", slp->sl_xname);
+ panic("%s: linked ccb retried", slp->sl_xname);
slp->sl_Qnexus = ncb;
slp->sl_ph_count = 0;
@@ -4443,7 +4443,7 @@ scsi_low_revoke_ccb(slp, cb, fdone)
if ((cb->ccb_flags & (CCB_STARTQ | CCB_DISCQ)) ==
(CCB_STARTQ | CCB_DISCQ))
{
- panic("%s: ccb in both queue\n", slp->sl_xname);
+ panic("%s: ccb in both queue", slp->sl_xname);
}
#endif /* SCSI_LOW_DIAGNOSTIC */
@@ -4470,7 +4470,7 @@ scsi_low_revoke_ccb(slp, cb, fdone)
cb->ccb_error |= FATALIO;
cb->ccb_flags &= ~CCB_AUTOSENSE;
if (scsi_low_done(slp, cb) != SCSI_LOW_DONE_COMPLETE)
- panic("%s: done ccb retried\n", slp->sl_xname);
+ panic("%s: done ccb retried", slp->sl_xname);
return NULL;
}
else
diff --git a/sys/cam/scsi/scsi_sa.c b/sys/cam/scsi/scsi_sa.c
index b6dde9c..889cc1a 100644
--- a/sys/cam/scsi/scsi_sa.c
+++ b/sys/cam/scsi/scsi_sa.c
@@ -611,7 +611,7 @@ saclose(dev_t dev, int flag, int fmt, struct thread *td)
break;
default:
xpt_print_path(periph->path);
- panic("unknown mode 0x%x in saclose\n", mode);
+ panic("unknown mode 0x%x in saclose", mode);
/* NOTREACHED */
break;
}
OpenPOWER on IntegriCloud