[PATCH] tgtimg: fix compile warning

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxx>
---
 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@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux SCSI]     [Linux RAID]     [Linux Clusters]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]

  Powered by Linux