[Stgt-devel] [PATCH] print newline

Pete Wyckoff pw
Tue Sep 4 22:02:45 CEST 2007


Add newlines missing on some dprintf and eprintf.

Signed-off-by: Pete Wyckoff <pw at osc.edu>
---
 usr/iscsi/chap.c   |    2 +-
 usr/iscsi/iscsid.c |    3 ++-
 usr/xen/xenbus.c   |    2 +-
 3 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/usr/iscsi/chap.c b/usr/iscsi/chap.c
index fc6fd8f..7e42d5f 100644
--- a/usr/iscsi/chap.c
+++ b/usr/iscsi/chap.c
@@ -284,7 +284,7 @@ static int chap_decode_string(char *encoded, uint8_t *decode_buf, int buf_len, i
 
 	} else if (encoding_fmt == BASE64_FORMAT) {
 		if ((strlen(encoded) - 2) > ((buf_len - 1) / 3 + 1) * 4) {
-			eprintf("buf[%d] !sufficient to decode string[%d]",
+			eprintf("buf[%d] !sufficient to decode string[%d]\n",
 				buf_len, (int) strlen(encoded));
 			return CHAP_TARGET_ERROR;
 		}
diff --git a/usr/iscsi/iscsid.c b/usr/iscsi/iscsid.c
index cbedcf1..ab3bf53 100644
--- a/usr/iscsi/iscsid.c
+++ b/usr/iscsi/iscsid.c
@@ -529,7 +529,8 @@ static void cmnd_exec_login(struct iscsi_connection *conn)
 
 	switch (ISCSI_LOGIN_CURRENT_STAGE(req->flags)) {
 	case ISCSI_SECURITY_NEGOTIATION_STAGE:
-		dprintf("Login request (security negotiation): %d", conn->state);
+		dprintf("Login request (security negotiation): %d\n",
+			conn->state);
 		rsp->flags = ISCSI_SECURITY_NEGOTIATION_STAGE << 2;
 
 		switch (conn->state) {
diff --git a/usr/xen/xenbus.c b/usr/xen/xenbus.c
index d17d555..fc68b0b 100644
--- a/usr/xen/xenbus.c
+++ b/usr/xen/xenbus.c
@@ -194,7 +194,7 @@ static int tgt_device_setup(struct xs_handle *h, char *bepath)
 
 	err = xs_printf(h, be->backpath, "info", "%d", be->frontend_id);
 	if (!err)
-		dprintf("ERROR: Failed writing info");
+		dprintf("ERROR: Failed writing info\n");
 
 	dprintf("[SETUP] Complete\n\n");
 
-- 
1.5.2.5




More information about the stgt mailing list