summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSungguk Na <sungguk.na@samsung.com>2021-07-01 14:47:20 +0900
committerSungguk Na <sungguk.na@samsung.com>2021-07-01 14:57:57 +0900
commit4690da14d5840760c37fad1c338b7f2b568c5254 (patch)
tree21def2eead2fc486001b08580722489a105b930e
parent0a42ef20384703a7edfb5f4a0939fd41c8a2065d (diff)
downloadmemps-accepted/tizen_6.5_unified.tar.gz
memps-accepted/tizen_6.5_unified.tar.bz2
memps-accepted/tizen_6.5_unified.zip
Use cross-platform printing for combined cases. Change-Id: Ic2789b42c567e950813a404fc72e677ced1ef001 Signed-off-by: Sungguk Na <sungguk.na@samsung.com>
-rw-r--r--memps.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/memps.c b/memps.c
index bc1487f..1eef747 100644
--- a/memps.c
+++ b/memps.c
@@ -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 */