summaryrefslogtreecommitdiffstats
path: root/utils/imxtools/sbtools/misc.c
diff options
context:
space:
mode:
Diffstat (limited to 'utils/imxtools/sbtools/misc.c')
-rw-r--r--utils/imxtools/sbtools/misc.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/utils/imxtools/sbtools/misc.c b/utils/imxtools/sbtools/misc.c
index 58e9609909..b36ab7902f 100644
--- a/utils/imxtools/sbtools/misc.c
+++ b/utils/imxtools/sbtools/misc.c
@@ -316,6 +316,18 @@ void color(color_t c)
printf("%s", (char *)c);
}
+void generic_std_printf(void *u, bool err, color_t c, const char *f, ...)
+{
+ (void)u;
+ if(!g_debug && !err)
+ return;
+ va_list args;
+ va_start(args, f);
+ color(c);
+ vprintf(f, args);
+ va_end(args);
+}
+
enum sb_version_guess_t guess_sb_version(const char *filename)
{
#define ret(x) do { if(f) fclose(f); return x; } while(0)