From 7bb8e28b917842687122e10975cd8f7734ad74ea Mon Sep 17 00:00:00 2001 From: Jeff Liu Date: Sat, 2 Jun 2012 14:33:06 +0000 Subject: [PATCH] xfstests: fix a compile warning at seek_sanity_test.c Fix the compiler report warning at seek_sanity_test.c: seek_sanity_test.c:46:3: warning: format '%lx' expects type 'long unsigned int', but argument 3 has type 'int' Signed-off-by: Jie Liu Signed-off-by: Mark Tinguely --- src/seek_sanity_test.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/seek_sanity_test.c b/src/seek_sanity_test.c index a185e54b..34f55089 100644 --- a/src/seek_sanity_test.c +++ b/src/seek_sanity_test.c @@ -42,8 +42,10 @@ static void get_file_system(int fd) { struct statfs buf; - if (!fstatfs(fd, &buf)) - fprintf(stdout, "File system magic#: 0x%lx\n", buf.f_type); + if (!fstatfs(fd, &buf)) { + fprintf(stdout, "File system magic#: 0x%lx\n", + (unsigned long int)buf.f_type); + } } static int get_io_sizes(int fd) -- 2.47.3