From: Jeff Liu Date: Sat, 2 Jun 2012 14:33:06 +0000 (+0000) Subject: xfstests: fix a compile warning at seek_sanity_test.c X-Git-Tag: v2022.05.01~3587 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=7bb8e28b917842687122e10975cd8f7734ad74ea;p=xfstests-dev.git 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 --- 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)