diff options
-rw-r--r-- | memps.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -29,6 +29,7 @@ #include <ctype.h> #include <stddef.h> +#include <inttypes.h> #include <dirent.h> #include <sys/utsname.h> @@ -708,7 +709,7 @@ static int get_tmpfs_info(FILE *output_fp) #ifndef __USE_FILE_OFFSET64 "tmpfs %16s Total %8ld KB, Used %8ld, Avail %8ld\n", #else - "tmpfs %16s Total %8lld KB, Used %8lld, Avail %8lld\n", + "tmpfs %16s Total %8"PRId64" KB, Used %8"PRId64", Avail %8"PRId64"\n", #endif tmpfs_mp, /* 1 block is 4 KB */ |