Merge pull request #404 from cormander/error-objname

Give objname on build error
This commit is contained in:
Seth Jennings 2014-09-08 10:26:08 -05:00
commit aa1f9cb8d8

View File

@ -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"); \
})