diff options
author | Sangjung Woo <sangjung.woo@samsung.com> | 2015-06-11 15:24:11 +0900 |
---|---|---|
committer | Sangjung Woo <sangjung.woo@samsung.com> | 2015-06-11 15:24:11 +0900 |
commit | 87d6296b5b2fbd340a0ab5af1fe235a34ac835d1 (patch) | |
tree | 440c562aad8724ebea4fe04f46bfaff0524ace17 | |
parent | c8241fc5a9e27aa1c53ea6980618c00e4c74a2c4 (diff) | |
download | neardal-87d6296b5b2fbd340a0ab5af1fe235a34ac835d1.tar.gz neardal-87d6296b5b2fbd340a0ab5af1fe235a34ac835d1.tar.bz2 neardal-87d6296b5b2fbd340a0ab5af1fe235a34ac835d1.zip |
fixbug: fix the compile time errortizen_3.0.m2.a1_tv_releasetizen_3.0.m2.a1_mobile_releasetizen_3.0.m1_tv_releasetizen_3.0.m1_mobile_releasesubmit/tizen_ivi/20160217.000006submit/tizen_ivi/20160217.000000submit/tizen_3.0.2015.q2_common/20150615.075539submit/tizen/20150612.041902accepted/tizen/wearable/20150612.073506accepted/tizen/tv/20150612.073459accepted/tizen/mobile/20150612.073440accepted/tizen/ivi/20160218.025342accepted/tizen/common/20150612.071814accepted/tizen/3.0.2015.q2/common/20150615.160135tizen_3.0.m1_tvtizen_3.0.m1_mobiletizen_3.0.2015.q2_commonaccepted/tizen_wearableaccepted/tizen_tvaccepted/tizen_mobileaccepted/tizen_iviaccepted/tizen_3.0.2015.q2_common
After upgrading the dlog module, neard faced the compile time error
since LOG_ON() macro basically does not return anything. However, some
macros such as NEARDAL_TRACE_ERR() usg this macro to check whether dlog
is enable or not. This is definitely a bug so this patch fixes this issue.
Change-Id: I3d5e61fc245b4160b323c41b9d4ec71cab0fe3fb
Signed-off-by: Sangjung Woo <sangjung.woo@samsung.com>
-rw-r--r-- | lib/neardal_traces_prv.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/neardal_traces_prv.h b/lib/neardal_traces_prv.h index 9e9088e..5b463b1 100644 --- a/lib/neardal_traces_prv.h +++ b/lib/neardal_traces_prv.h @@ -34,14 +34,14 @@ #define NEARDAL_TRACEIN() neardal_trace(__func__, stdout, \ "Processing...\n") #else - #define NEARDAL_TRACE(format, arg...) (LOG_ON() ? (LOG(LOG_DEBUG, "NEARDAL", "%s:%s(%d)>" format, __MODULE__, __func__, __LINE__, ##arg)) : (0)) - #define NEARDAL_TRACEF(format, arg...) (LOG_ON() ? (LOG(LOG_DEBUG, "NEARDAL", "%s:%s(%d)>" format, __MODULE__, __func__, __LINE__, ##arg)) : (0)) - #define NEARDAL_TRACEIN(format, arg...) (LOG_ON() ? (LOG(LOG_DEBUG, "NEARDAL", "%s:%s(%d)>" format, __MODULE__, __func__, __LINE__, ##arg)) : (0)) + #define NEARDAL_TRACE(format, arg...) (LOG(LOG_DEBUG, "NEARDAL", "%s:%s(%d)>" format, __MODULE__, __func__, __LINE__, ##arg)) + #define NEARDAL_TRACEF(format, arg...) (LOG(LOG_DEBUG, "NEARDAL", "%s:%s(%d)>" format, __MODULE__, __func__, __LINE__, ##arg)) + #define NEARDAL_TRACEIN(format, arg...) (LOG(LOG_DEBUG, "NEARDAL", "%s:%s(%d)>" format, __MODULE__, __func__, __LINE__, ##arg)) #define NEARDAL_TRACEDUMP(...) #endif /* NEARDAL_DEBUG */ /* always defined */ -#define NEARDAL_TRACE_LOG(format, arg...) (LOG_ON() ? (LOG(LOG_DEBUG, "NEARDAL", "%s:%s(%d)>" format, __MODULE__, __func__, __LINE__, ##arg)) : (0)) -#define NEARDAL_TRACE_ERR(format, arg...) (LOG_ON() ? (LOG(LOG_DEBUG, "NEARDAL", "%s:%s(%d)>" format, __MODULE__, __func__, __LINE__, ##arg)) : (0)) +#define NEARDAL_TRACE_LOG(format, arg...) (LOG(LOG_DEBUG, "NEARDAL", "%s:%s(%d)>" format, __MODULE__, __func__, __LINE__, ##arg)) +#define NEARDAL_TRACE_ERR(format, arg...) (LOG(LOG_DEBUG, "NEARDAL", "%s:%s(%d)>" format, __MODULE__, __func__, __LINE__, ##arg)) void neardal_trace(const char *func, FILE *stream, char *format, ...) __attribute__((format(printf, 3, 4))); |