Tone down some of the overly-verbose linker logging.

We don't need to see every dlopen(3)/dlsym(3) failure unless LD_DEBUG is on.

Change-Id: I1edfe8b72f32ff54dd30e1acf32e20d470d5e9f7
This commit is contained in:
Elliott Hughes
2012-11-05 09:11:43 -08:00
parent 9df2e000b5
commit 9c94fc9fbe
2 changed files with 4 additions and 10 deletions

View File

@@ -71,8 +71,6 @@ extern int format_fd(int, const char *, ...) __attribute__((__format__(printf, 2
#define PRINT(x...) _PRINTVF(-1, x)
#define INFO(x...) _PRINTVF(0, x)
#define TRACE(x...) _PRINTVF(1, x)
#define WARN(fmt,args...) _PRINTVF(-1, "%s:%d| WARNING: " fmt, __FILE__, __LINE__, ## args)
#define ERROR(fmt,args...) _PRINTVF(-1, "%s:%d| ERROR: " fmt, __FILE__, __LINE__, ## args)
#if TRACE_DEBUG
#define DEBUG(x...) _PRINTVF(2, "DEBUG: " x)
@@ -82,9 +80,4 @@ extern int format_fd(int, const char *, ...) __attribute__((__format__(printf, 2
#define TRACE_TYPE(t,x...) do { if (DO_TRACE_##t) { TRACE(x); } } while (0)
#if TIMING
#undef WARN
#define WARN(x...) do {} while (0)
#endif /* TIMING */
#endif /* _LINKER_DEBUG_H_ */