mirror of
https://github.com/dynup/kpatch
synced 2025-02-04 11:11:31 +00:00
Merge pull request #404 from cormander/error-objname
Give objname on build error
This commit is contained in:
commit
aa1f9cb8d8
@ -52,11 +52,11 @@
|
||||
#include "kpatch-patch.h"
|
||||
|
||||
#define ERROR(format, ...) \
|
||||
error(1, 0, "%s: %d: " format, __FUNCTION__, __LINE__, ##__VA_ARGS__)
|
||||
error(1, 0, "%s: %s: %d: " format, objname, __FUNCTION__, __LINE__, ##__VA_ARGS__)
|
||||
|
||||
#define DIFF_FATAL(format, ...) \
|
||||
({ \
|
||||
printf("%s: " format "\n", objname, ##__VA_ARGS__); \
|
||||
fprintf(stderr, "%s: " format "\n", objname, ##__VA_ARGS__); \
|
||||
error(2, 0, "unreconcilable difference"); \
|
||||
})
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user