system/xfsprogs: invalid printf flags in stat.c
Bugzilla ID | 227 |
Reporter | A. Wilcox (awilfox) |
Assignee | A. Wilcox (awilfox) |
Reported | 2019-12-22 21:29:06 -0600 |
Modified | 2019-12-22 21:29:06 -0600 |
Status | CONFIRMED |
Version | 1.0-BETA4 |
Hardware | Adélie Linux / All |
Importance | --- / normal |
Description
stat.c: In function ‘dump_raw_stat’:
stat.c:69:32: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘time_t’ {aka ‘long long int’} [-Wformat=]
printf("stat.atime.tv_sec = %ld\n", st->st_atim.tv_sec);
~~^ ~~~~~~~~~~~~~~~~~~
%lld
stat.c:71:32: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘time_t’ {aka ‘long long int’} [-Wformat=]
printf("stat.ctime.tv_sec = %ld\n", st->st_ctim.tv_sec);
~~^ ~~~~~~~~~~~~~~~~~~
%lld
stat.c:73:32: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘time_t’ {aka ‘long long int’} [-Wformat=]
printf("stat.mtime.tv_sec = %ld\n", st->st_mtim.tv_sec);
~~^ ~~~~~~~~~~~~~~~~~~
%lld