[stgt] [PATCH] tgtimg: fix compile warning

FUJITA Tomonori fujita.tomonori at lab.ntt.co.jp
Sat Dec 17 09:47:57 CET 2011


tgtimg.c: In function ‘ssc_new’:
tgtimg.c:262: warning: format ‘%llu’ expects type ‘long long unsigned in’, but argument 3 has type ‘uint64_t

Signed-off-by: FUJITA Tomonori <fujita.tomonori at lab.ntt.co.jp>
---
 usr/tgtimg.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/usr/tgtimg.c b/usr/tgtimg.c
index cbad44b..f4388d9 100644
--- a/usr/tgtimg.c
+++ b/usr/tgtimg.c
@@ -259,7 +259,7 @@ static int ssc_new(int op, char *path, char *barcode, char *capacity,
 	uint8_t current_media[1024];
 	uint64_t size;
 
-	sscanf(capacity, "%llu", &size);
+	sscanf(capacity, "%" SCNu64, &size);
 	if (size == 0)
 		size = 8000;
 
-- 
1.7.2.5

--
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