Make this WARNS=5 clean by using %j and (uintmax_t).
Look at by: sebastian.ssmoller@web.de on audit@
This commit is contained in:
parent
b107cd7718
commit
eb3beef5ad
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=113933
@ -27,7 +27,7 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
PROG= kldstat
|
PROG= kldstat
|
||||||
WARNS= 0
|
|
||||||
MAN= kldstat.8
|
MAN= kldstat.8
|
||||||
|
WARNS?= 5
|
||||||
|
|
||||||
.include <bsd.prog.mk>
|
.include <bsd.prog.mk>
|
||||||
|
@ -30,6 +30,7 @@ static const char rcsid[] =
|
|||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
#include <err.h>
|
#include <err.h>
|
||||||
|
#include <stdint.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
@ -65,8 +66,9 @@ static void printfile(int fileid, int verbose)
|
|||||||
if (kldstat(fileid, &stat) < 0)
|
if (kldstat(fileid, &stat) < 0)
|
||||||
warn("can't stat file id %d", fileid);
|
warn("can't stat file id %d", fileid);
|
||||||
else
|
else
|
||||||
printf("%2d %4d %p %-8x %s\n",
|
printf("%2d %4d %p %-8jx %s\n",
|
||||||
stat.id, stat.refs, stat.address, stat.size, stat.name);
|
stat.id, stat.refs, stat.address, (uintmax_t)stat.size,
|
||||||
|
stat.name);
|
||||||
|
|
||||||
if (verbose) {
|
if (verbose) {
|
||||||
printf("\tContains modules:\n");
|
printf("\tContains modules:\n");
|
||||||
|
Loading…
Reference in New Issue
Block a user