summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mobicore/common/LogWrapper/log.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/mobicore/common/LogWrapper/log.h b/mobicore/common/LogWrapper/log.h
index 78c9f94..07d0872 100644
--- a/mobicore/common/LogWrapper/log.h
+++ b/mobicore/common/LogWrapper/log.h
@@ -78,11 +78,10 @@
#define LOG_W(fmt, args...) DUMMY_FUNCTION()
#else
// add LINE
- #define LOG_I(fmt, args...) LOG_i(fmt ";%d", ## args, __LINE__)
- #define LOG_W(fmt, args...) LOG_w(fmt ";%d", ## args, __LINE__)
+ #define LOG_I(fmt, args...) LOG_i(fmt , ## args)
+ #define LOG_W(fmt, args...) LOG_w(fmt , ## args)
#endif
- // LOG_E is always defined
- #define _LOG_E(fmt, args...) LOG_e(fmt, ## args)
+ #define LOG_E(fmt, args...) LOG_e("ERROR - %s():\n***** " fmt, __FUNCTION__, ## args)
// actually mapping to log system, adding level and tag.
#define LOG_i(...) __android_log_print(ANDROID_LOG_INFO, LOG_TAG, __VA_ARGS__)
@@ -125,6 +124,7 @@
#define LOG_V(...) DUMMY_FUNCTION()
#endif
+#if 0
/** LOG_E() needs to be more prominent:
* Display "*********** ERROR ***********" before actual error message.
*/
@@ -136,9 +136,10 @@
_LOG_E(" *** Detected in %s/%u()", __FUNCTION__, __LINE__); \
_LOG_E(" *****************************"); \
} while(1!=1)
+#endif
#define LOG_ERRNO(MESSAGE) \
- LOG_E("%s failed with \"%s\"(errno %i)", MESSAGE, strerror(errno), errno);
+ LOG_E("%s -- %s (errno %d)", MESSAGE, strerror(errno), errno);
#define LOG_I_BUF LOG_I_Buf