[Stgt-devel] [Patch 1/1] debug printf fix.
Mark Harvey
markh794
Fri Aug 24 09:10:18 CEST 2007
Missing new-line char at end of debug statements.
>From 5554bf06ddea81aa23dd6fe325072cac178a3f06 Mon Sep 17 00:00:00 2001
From: Mark Harvey <markh794 at gmail.com>
Date: Fri, 24 Aug 2007 16:58:59 +1000
Subject: debug printf fix
Added missing newline to dump_cdb() debug statements.
Signed-off-by: Mark Harvey <markh794 at gmail.com>
---
usr/spc.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/usr/spc.c b/usr/spc.c
index b56c0b3..ad71e4a 100644
--- a/usr/spc.c
+++ b/usr/spc.c
@@ -439,25 +439,25 @@ void dump_cdb(struct scsi_cmd *cmd)
switch(cmd->scb_len) {
case 6:
- dprintf("SCSI CMD: %02x %02x %02x %02x %02d %02x",
+ dprintf("SCSI CMD: %02x %02x %02x %02x %02d %02x\n",
cdb[0], cdb[1], cdb[2], cdb[3], cdb[4], cdb[5]);
break;
case 10:
- dprintf("SCSI CMD: %02x %02x %02x %02x %02d %02x"
+ dprintf("SCSI CMD: %02x %02x %02x %02x %02d %02x\n"
" %02x %02x %02x %02x",
cdb[0], cdb[1], cdb[2], cdb[3], cdb[4], cdb[5],
cdb[6], cdb[7], cdb[8], cdb[9]);
break;
case 12:
dprintf("SCSI CMD: %02x %02x %02x %02x %02d %02x"
- " %02x %02x %02x %02x %02x %02x",
+ " %02x %02x %02x %02x %02x %02x\n",
cdb[0], cdb[1], cdb[2], cdb[3], cdb[4], cdb[5],
cdb[6], cdb[7], cdb[8], cdb[9], cdb[10], cdb[11]);
break;
case 16:
dprintf("SCSI CMD: %02x %02x %02x %02x %02d %02x"
" %02x %02x %02x %02x %02x %02x"
- " %02x %02x %02x %02x",
+ " %02x %02x %02x %02x\n",
cdb[0], cdb[1], cdb[2], cdb[3], cdb[4], cdb[5],
cdb[6], cdb[7], cdb[8], cdb[9], cdb[10], cdb[11],
cdb[12], cdb[13], cdb[14], cdb[15]);
--
1.5.2.3
More information about the stgt
mailing list