aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Denys Vlasenko <vda.linux@googlemail.com>2018-11-27 15:43:10 +0100
committerGravatar Denys Vlasenko <vda.linux@googlemail.com>2018-11-27 15:43:10 +0100
commitf4709d78cb0c4f54283046e8f86edb9ecd7e41ca (patch)
tree735e2933dbb662b6f8530a56cb9095f30226d2f7
parent31a04d91c24f6ee180de45e1508dc03dea9f9c11 (diff)
downloadbusybox-f4709d78cb0c4f54283046e8f86edb9ecd7e41ca.tar.gz
busybox-f4709d78cb0c4f54283046e8f86edb9ecd7e41ca.tar.bz2
free: ensure there is a least one space between numbers
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--procps/free.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/procps/free.c b/procps/free.c
index e41601e08..ee0cd981a 100644
--- a/procps/free.c
+++ b/procps/free.c
@@ -124,9 +124,9 @@ int free_main(int argc UNUSED_PARAM, char **argv IF_NOT_DESKTOP(UNUSED_PARAM))
cached += info.bufferram;
cached_plus_free = cached + info.freeram;
-#define FIELDS_6 "%12llu%12llu%12llu%12llu%12llu%12llu\n"
-#define FIELDS_3 (FIELDS_6 + 3*6)
-#define FIELDS_2 (FIELDS_6 + 4*6)
+#define FIELDS_6 "%12llu %11llu %11llu %11llu %11llu %11llu\n"
+#define FIELDS_3 (FIELDS_6 + 6 + 7 + 7)
+#define FIELDS_2 (FIELDS_6 + 6 + 7 + 7 + 7)
printf(FIELDS_6,
scale(&G, info.totalram), //total