summaryrefslogtreecommitdiffstats
path: root/src/utils.c
diff options
context:
space:
mode:
authorpancake <pancake@dazo>2007-11-20 04:14:13 +0100
committerpancake <pancake@dazo>2007-11-20 04:14:13 +0100
commit4115aab13d70bbe8300562bcd789cc5bc27c8ded (patch)
tree8bd7531d26dd35a45d5a52a5574bc1693261c168 /src/utils.c
parentfbdac811fc7694ca936607590cb19fd930528f5e (diff)
download0xFFFF-4115aab13d70bbe8300562bcd789cc5bc27c8ded.tar.bz2
- Import patches from Osvaldo Santana * Fix build on gcc 4 * Fix nanddump call definition (ignore oob added) * Fixed some stupid bugs with -pedantic -std=c990.3.1
release 0.3.1
Diffstat (limited to 'src/utils.c')
-rw-r--r--src/utils.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/utils.c b/src/utils.c
index fe74e16..e694a0f 100644
--- a/src/utils.c
+++ b/src/utils.c
@@ -20,6 +20,7 @@
#include <usb.h>
#include <stdio.h>
#include <string.h>
+#include <stdarg.h>
#include <stdlib.h>
unsigned long get_file_size(char *file)
@@ -53,3 +54,12 @@ void progressbar(unsigned long long part, unsigned long long total)
printf("]\r");
fflush(stdout);
}
+
+void eprintf(const char *format, ...)
+{
+ va_list ap;
+ va_start(ap, format);
+ vfprintf(stderr, format, ap);
+ va_end(ap);
+ //fflush(stderr); // XXX CRASH?!? stdin here?!?!?
+}