summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2016-04-11 15:44:13 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2016-04-15 12:21:45 +0200
commit48b205e32342fc8a2648b2bd3f1f6d9a7d74e6cb (patch)
tree2373d7c3e1d4c0cd41dcda23084d2df43e3eb0a7
parent4f17444eccebeeadeaed212568a202ef97f4e71f (diff)
downloadbarebox-48b205e32342fc8a2648b2bd3f1f6d9a7d74e6cb.tar.gz
barebox-48b205e32342fc8a2648b2bd3f1f6d9a7d74e6cb.tar.xz
show_progress: print spaces with %*s
Removes the need for include/linux/stringify.h in the progress bar code. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--lib/show_progress.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/show_progress.c b/lib/show_progress.c
index f9aa1a945e..a32a13c16d 100644
--- a/lib/show_progress.c
+++ b/lib/show_progress.c
@@ -21,7 +21,6 @@
#include <fs.h>
#include <progress.h>
#include <asm-generic/div64.h>
-#include <linux/stringify.h>
#define HASHES_PER_LINE 65
@@ -58,7 +57,7 @@ void init_progression_bar(int max)
progress_max = max;
spin = 0;
if (progress_max && progress_max != FILESIZE_MAX)
- printf("\t[%"__stringify(HASHES_PER_LINE)"s]\r\t[", "");
+ printf("\t[%*s]\r\t[", HASHES_PER_LINE, "");
else
printf("\t");
}