mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
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 <jeff.liu@oracle.com> Signed-off-by: Mark Tinguely <tinguely@sgi.com>
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user