diff options
author | Nico Huber <nico.huber@secunet.com> | 2012-12-10 13:34:12 +0000 |
---|---|---|
committer | David Hendricks <david.hendricks@gmail.com> | 2017-06-03 20:15:56 +0200 |
commit | 1878110848f36c53667c9855f0a413c43e64597f (patch) | |
tree | 66bacd63991be932b3d031dfe280576449b3280e /flash.h | |
parent | a9fc4f4ebf335f3f20a47a48f2b9c2b00a4de696 (diff) | |
download | flashrom-1878110848f36c53667c9855f0a413c43e64597f.tar.gz flashrom-1878110848f36c53667c9855f0a413c43e64597f.tar.bz2 flashrom-1878110848f36c53667c9855f0a413c43e64597f.zip |
Adapt CLI to use new libflashrom interface' print callback
This renames CLI's print() to flashrom_print_cb() and registers it
through the new libflashrom interface.
v2: Add libflashrom.o to LIB_OBJS now that everything can be linked
together.
Change-Id: Idf19978eb8e340d258199193d2978f37409e9983
Signed-off-by: Nico Huber <nico.huber@secunet.com>
Reviewed-on: https://review.coreboot.org/17948
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: David Hendricks <david.hendricks@gmail.com>
Diffstat (limited to 'flash.h')
-rw-r--r-- | flash.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -30,6 +30,7 @@ #include <stdio.h> #include <stdint.h> #include <stddef.h> +#include <stdarg.h> #include <stdbool.h> #if IS_WINDOWS #include <windows.h> @@ -321,6 +322,7 @@ enum msglevel { MSG_DEBUG2 = 4, MSG_SPEW = 5, }; +int flashrom_print_cb(enum msglevel level, const char *fmt, va_list ap); /* Let gcc and clang check for correct printf-style format strings. */ int print(enum msglevel level, const char *fmt, ...) #ifdef __MINGW32__ |