xfstests: fix a compile warning at seek_sanity_test.c
authorJeff Liu <jeff.liu@oracle.com>
Sat, 2 Jun 2012 14:33:06 +0000 (14:33 +0000)
committerMark Tinguely <tinguely@eagdhcp-232-125.americas.sgi.com>
Mon, 24 Sep 2012 20:24:22 +0000 (15:24 -0500)
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 <jeff.liu@oracle.com>
Signed-off-by: Mark Tinguely <tinguely@sgi.com>
src/seek_sanity_test.c

index a185e54b0131372a2a8e04fdb0dcafea6b1ddfca..34f550892500190a0addb5b1e25759cf1db593b4 100644 (file)
@@ -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)