9
0
Fork 0

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>
This commit is contained in:
Sascha Hauer 2016-04-11 15:44:13 +02:00
parent 4f17444ecc
commit 48b205e323
1 changed files with 1 additions and 2 deletions

View File

@ -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");
}