diff options
Diffstat (limited to 'sbin/kldstat/kldstat.c')
-rw-r--r-- | sbin/kldstat/kldstat.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sbin/kldstat/kldstat.c b/sbin/kldstat/kldstat.c index 58c5388..3e1adee 100644 --- a/sbin/kldstat/kldstat.c +++ b/sbin/kldstat/kldstat.c @@ -30,6 +30,7 @@ static const char rcsid[] = #endif /* not lint */ #include <err.h> +#include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <unistd.h> @@ -65,8 +66,9 @@ static void printfile(int fileid, int verbose) if (kldstat(fileid, &stat) < 0) warn("can't stat file id %d", fileid); else - printf("%2d %4d %p %-8x %s\n", - stat.id, stat.refs, stat.address, stat.size, stat.name); + printf("%2d %4d %p %-8jx %s\n", + stat.id, stat.refs, stat.address, (uintmax_t)stat.size, + stat.name); if (verbose) { printf("\tContains modules:\n"); |