From 3d427bfd7740731bfc203b047d557af564975cf6 Mon Sep 17 00:00:00 2001 From: pancake Date: Mon, 8 Dec 2008 00:21:05 +0100 Subject: * Added -n flag to do not write to disk or flash (simulation) * Added -S flag to specify subversion id manually while flashing or dumping * Fixed support for the last fiasco image - Skip paddings - More verbose output while parsing FIASCO headers * Initial implementation of the full direct FIASCO flasher - No need to dump manually before flashing * Some warnings and code cleanup * Fix building issue * Add HAVE_GUI directive in config.mk * Up to version 0.4 --- src/utils.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/utils.c') diff --git a/src/utils.c b/src/utils.c index 2f4efbb..24872ed 100644 --- a/src/utils.c +++ b/src/utils.c @@ -22,7 +22,7 @@ #include #include -unsigned long get_file_size(char *file) +unsigned long get_file_size(const char *file) { FILE *fd = fopen(file, "r"); unsigned long len = 0; @@ -53,7 +53,7 @@ void progressbar(unsigned long long part, unsigned long long total) squeue_push2(p, "bar", msg, 0); } else { #endif - printf("\e[K %3d%% [", pc); + printf("\x1b[K %3d%% [", pc); if (columns) cols = atoi(columns); cols-=15; -- cgit v1.2.3