diff options
author | Nico Huber <nico.huber@secunet.com> | 2017-06-19 12:57:10 +0200 |
---|---|---|
committer | Nico Huber <nico.h@gmx.de> | 2017-07-13 16:27:55 +0000 |
commit | d152fb95e2b7fda62a85f6c8e4112ba9f353a8d6 (patch) | |
tree | cfd2ea28b75cb90db72f488ee237a068d0cb52a4 /libflashrom.c | |
parent | 731316a9128c4015bc0facd1743afeb3a080129e (diff) | |
download | flashrom-d152fb95e2b7fda62a85f6c8e4112ba9f353a8d6.tar.gz flashrom-d152fb95e2b7fda62a85f6c8e4112ba9f353a8d6.tar.bz2 flashrom-d152fb95e2b7fda62a85f6c8e4112ba9f353a8d6.zip |
Drop redundant `enum msglevel`
Use `enum flashrom_log_level` instead to avoid further confusion.
Change-Id: I1895cb8f60da3abf70c9c2953f52414cd2cc10a9
Signed-off-by: Nico Huber <nico.huber@secunet.com>
Reviewed-on: https://review.coreboot.org/20268
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'libflashrom.c')
-rw-r--r-- | libflashrom.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libflashrom.c b/libflashrom.c index 962e96fca..6e0f42c9f 100644 --- a/libflashrom.c +++ b/libflashrom.c @@ -84,13 +84,13 @@ void flashrom_set_log_callback(flashrom_log_callback *const log_callback) global_log_callback = log_callback; } /** @private */ -int print(const enum msglevel level, const char *const fmt, ...) +int print(const enum flashrom_log_level level, const char *const fmt, ...) { if (global_log_callback) { int ret; va_list args; va_start(args, fmt); - ret = global_log_callback((enum flashrom_log_level)level, fmt, args); + ret = global_log_callback(level, fmt, args); va_end(args); return ret; } |