mirror of
https://github.com/dynup/kpatch
synced 2025-04-26 04:57:58 +00:00
create-diff-object: use errx() instead of err()
Otherwise on recent distros it appends the errno to the error message, like: create-diff-object: ERROR: x86.o: kpatch_regenerate_special_section: 2633: Found 1 unsupported static call(s) in the patched code. Use KPATCH_STATIC_CALL() instead.: Success which is not what we want in most cases. Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com>
This commit is contained in:
parent
ab2397c03e
commit
92c178b6a3
@ -56,7 +56,7 @@
|
||||
#define DIFF_FATAL(format, ...) \
|
||||
({ \
|
||||
fprintf(stderr, "ERROR: %s: " format "\n", childobj, ##__VA_ARGS__); \
|
||||
err(EXIT_STATUS_DIFF_FATAL, "unreconcilable difference"); \
|
||||
errx(EXIT_STATUS_DIFF_FATAL, "unreconcilable difference"); \
|
||||
})
|
||||
|
||||
char *childobj;
|
||||
|
@ -9,7 +9,7 @@ extern enum loglevel loglevel;
|
||||
extern char *childobj;
|
||||
|
||||
#define ERROR(format, ...) \
|
||||
err(EXIT_STATUS_ERROR, "ERROR: %s: %s: %d: " format, childobj, __FUNCTION__, __LINE__, ##__VA_ARGS__)
|
||||
errx(EXIT_STATUS_ERROR, "ERROR: %s: %s: %d: " format, childobj, __FUNCTION__, __LINE__, ##__VA_ARGS__)
|
||||
|
||||
#define log_debug(format, ...) log(DEBUG, format, ##__VA_ARGS__)
|
||||
#define log_normal(format, ...) log(NORMAL, "%s: " format, childobj, ##__VA_ARGS__)
|
||||
|
Loading…
Reference in New Issue
Block a user