Give objname on build error

This commit is contained in:
Corey Henderson 2014-09-07 23:38:04 -04:00
parent 4a96e11768
commit 5228e07c63

View File

@ -52,7 +52,10 @@
#include "kpatch-patch.h"
#define ERROR(format, ...) \
error(1, 0, "%s: %d: " format, __FUNCTION__, __LINE__, ##__VA_ARGS__)
({ \
printf("%s: ", objname); \
error(1, 0, "%s: %d: " format, __FUNCTION__, __LINE__, ##__VA_ARGS__); \
})
#define DIFF_FATAL(format, ...) \
({ \