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:
Josh Poimboeuf 2022-11-22 12:53:09 -08:00
parent ab2397c03e
commit 92c178b6a3
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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__)