reiserfsprogs: fix printf formatting warnings
This patch fixes: main.c:968:11: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 3 has type ‘time_t’ [-Wformat] prints.c:152:7: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘__u32’ [-Wformat] Signed-off-by: Jeff Mahoney <jeffm@suse.com>
This commit is contained in:
1 parent
eba9abb84d
commit
0edf890eec
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -964,7 +964,7 @@ static int reiserfs_check_auto_state(reiserfs_filsys_t *fs)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (interval != UINT_MAX && now > lastcheck + interval) {
|
if (interval != UINT_MAX && now > lastcheck + interval) {
|
||||||
fprintf(stderr, "File system hasn't been checked in %u days. "
|
fprintf(stderr, "File system hasn't been checked in %lu days. "
|
||||||
"Checking now.\n", (now - lastcheck) / (60*60*24));
|
"Checking now.\n", (now - lastcheck) / (60*60*24));
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -148,7 +148,7 @@ static int print_disk_child (FILE * stream,
|
|||||||
int len;
|
int len;
|
||||||
|
|
||||||
dc = *((const struct disk_child **)(args[0]));
|
dc = *((const struct disk_child **)(args[0]));
|
||||||
len = asprintf (&buffer, "[dc_number=%lu, dc_size=%u]", get_dc_child_blocknr (dc),
|
len = asprintf (&buffer, "[dc_number=%u, dc_size=%u]", get_dc_child_blocknr (dc),
|
||||||
get_dc_child_size (dc));
|
get_dc_child_size (dc));
|
||||||
FPRINTF;
|
FPRINTF;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user