From 48b205e32342fc8a2648b2bd3f1f6d9a7d74e6cb Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Mon, 11 Apr 2016 15:44:13 +0200 Subject: [PATCH] show_progress: print spaces with %*s Removes the need for include/linux/stringify.h in the progress bar code. Signed-off-by: Sascha Hauer --- lib/show_progress.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/show_progress.c b/lib/show_progress.c index f9aa1a945..a32a13c16 100644 --- a/lib/show_progress.c +++ b/lib/show_progress.c @@ -21,7 +21,6 @@ #include #include #include -#include #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"); }