diff options
author | Sungguk Na <sungguk.na@samsung.com> | 2021-07-01 14:47:20 +0900 |
---|---|---|
committer | Sungguk Na <sungguk.na@samsung.com> | 2021-07-01 14:57:57 +0900 |
commit | 4690da14d5840760c37fad1c338b7f2b568c5254 (patch) | |
tree | 21def2eead2fc486001b08580722489a105b930e | |
parent | 0a42ef20384703a7edfb5f4a0939fd41c8a2065d (diff) | |
download | memps-tizen_6.5.tar.gz memps-tizen_6.5.tar.bz2 memps-tizen_6.5.zip |
Use proper printing format for struct statfstizen_6.5.m2_releasesubmit/tizen_6.5/20211028.162501submit/tizen/20210701.062539accepted/tizen/unified/20210701.072833accepted/tizen/6.5/unified/20211028.115220tizen_6.5accepted/tizen_6.5_unified
Use cross-platform printing for combined cases.
Change-Id: Ic2789b42c567e950813a404fc72e677ced1ef001
Signed-off-by: Sungguk Na <sungguk.na@samsung.com>
-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 */ |