diff options
author | Zheng Bao <fishbaozi@gmail.com> | 2020-10-01 17:05:43 +0800 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2020-11-04 09:42:04 +0000 |
commit | 77a2c67dfe94e1dac09c5878d9963d30fae2a90f (patch) | |
tree | e4391bbc8bc0c6717f2e717aa58ce87ca97d0e97 /util/amdfwtool/data_parse.c | |
parent | 9e90807b40529e1e8b236fe73505c3c43f5ca5b5 (diff) | |
download | coreboot-77a2c67dfe94e1dac09c5878d9963d30fae2a90f.tar.xz |
amdfwtool: Change all error output to fprintf stderr
Change-Id: Ie4ce0f1fb3aea8f12dfae9e5d16589262e7d6ab0
Signed-off-by: Zheng Bao <fishbaozi@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/45895
Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
Reviewed-by: Martin Roth <martinroth@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'util/amdfwtool/data_parse.c')
-rw-r--r-- | util/amdfwtool/data_parse.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/util/amdfwtool/data_parse.c b/util/amdfwtool/data_parse.c index bb616d3405..2af6c31991 100644 --- a/util/amdfwtool/data_parse.c +++ b/util/amdfwtool/data_parse.c @@ -38,7 +38,7 @@ void compile_reg_expr(int cflags, const char *expr, regex_t *reg) result = regcomp(reg, expr, cflags); if (result != 0) { regerror(result, reg, error_msg, ERROR_BUF_SIZE); - printf("%s\n", error_msg); + fprintf(stderr, "%s\n", error_msg); } } @@ -304,7 +304,7 @@ int get_input_file_line(FILE *f, char line[], int line_buf_size) line[strlen(line) - 1] = '\0'; if (strlen(line) == ((size_t) (line_buf_size - 1))) { - printf("The line size in config file should be lower than %d bytes.\n", + fprintf(stderr, "The line size in config file should be lower than %d bytes.\n", MAX_LINE_SIZE); exit(1); } |