system/kmod: invalid printf format strings in depmod
Bugzilla ID | 228 |
Reporter | A. Wilcox (awilfox) |
Assignee | A. Wilcox (awilfox) |
Reported | 2019-12-22 22:07:55 -0600 |
Modified | 2019-12-22 22:07:55 -0600 |
Status | CONFIRMED |
Version | 1.0-BETA4 |
Hardware | Adélie Linux / All |
Importance | --- / normal |
Description
tools/depmod.c: In function ‘depmod_output’:
tools/depmod.c:2449:40: warning: format ‘%li’ expects argument of type ‘long int’, but argument 6 has type ‘suseconds_t’ {aka ‘long long int’} [-Wformat=]
snprintf(tmp, sizeof(tmp), "%s.%i.%li.%li", itr->name, getpid(),
~~^
%lli
tv.tv_usec, tv.tv_sec);
~~~~~~~~~~
tools/depmod.c:2449:44: warning: format ‘%li’ expects argument of type ‘long int’, but argument 7 has type ‘time_t’ {aka ‘long long int’} [-Wformat=]
snprintf(tmp, sizeof(tmp), "%s.%i.%li.%li", itr->name, getpid(),
~~^
%lli
tv.tv_usec, tv.tv_sec);
~~~~~~~~~