[stgt] [PATCH] bs_ssc.c: fix format string

Arne Redlich arne.redlich at googlemail.com
Sat Mar 31 23:36:35 CEST 2012


The "Z" length modifier goes back to libc5 and shouldn't be used.

Signed-off-by: Arne Redlich <arne.redlich at googlemail.com>
---
 usr/bs_ssc.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/usr/bs_ssc.c b/usr/bs_ssc.c
index 193a9ed..6412972 100644
--- a/usr/bs_ssc.c
+++ b/usr/bs_ssc.c
@@ -568,7 +568,7 @@ static void tape_rdwr_request(struct scsi_cmd *cmd)
 		int len = scsi_get_in_length(cmd);
 
 		dprintf("Size of in_buffer = %d\n", len);
-		dprintf("Sizeof(buf): %Zd\n", sizeof(buf));
+		dprintf("Sizeof(buf): %zd\n", sizeof(buf));
 		dprintf("service action: 0x%02x\n", service_action);
 
 		if (service_action == 0) {	/* Short form - block ID */
-- 
1.7.9.1



--
To unsubscribe from this list: send the line "unsubscribe stgt" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html



More information about the stgt mailing list