summaryrefslogtreecommitdiff
path: root/include/bundle_log.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/bundle_log.h')
-rwxr-xr-xinclude/bundle_log.h38
1 files changed, 24 insertions, 14 deletions
diff --git a/include/bundle_log.h b/include/bundle_log.h
index 192c283..b3bda77 100755
--- a/include/bundle_log.h
+++ b/include/bundle_log.h
@@ -1,10 +1,5 @@
/*
- * bundle
- *
- * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Jayoun Lee <airjany@samsung.com>, Sewook Park <sewook7.park@samsung.com>,
- * Jaeho Lee <jaeho81.lee@samsung.com>
+ * Copyright (c) 2000 - 2016 Samsung Electronics Co., Ltd. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -17,11 +12,13 @@
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
- *
*/
+#ifndef __BUNDLE_LOG_H__
+#define __BUNDLE_LOG_H__
#include <dlog/dlog.h>
+
#ifdef LOG_TAG
#undef LOG_TAG
#endif
@@ -29,14 +26,27 @@
#define LOG_TAG "BUNDLE"
#ifdef _DEBUG_MODE_
-#define BUNDLE_LOG_PRINT(FMT, ARG...) do { printf("%5d", getpid()); printf
- ("%s() : "FMT"\n", __FUNCTION__, ##ARG); } while (false)
-#define BUNDLE_EXCEPTION_PRINT(FMT, ARG...) do { printf("%5d", getpid());
- printf("%s() : "FMT"\n", __FUNCTION__, ##ARG); } while (false)
-#define BUNDLE_ASSERT_PRINT(FMT, ARG...) do { printf("%5d", getpid()); printf
- ("%s() : "FMT"\n", __FUNCTION__, ##ARG); } while (false)
+#define BUNDLE_LOG_PRINT(FMT, ARG...) \
+ do { \
+ printf("%5d", getpid()); \
+ printf("%s() : "FMT"\n", __FUNCTION__, ##ARG); \
+ } while (0)
+
+#define BUNDLE_EXCEPTION_PRINT(FMT, ARG...) \
+ do { \
+ printf("%5d", getpid()); \
+ printf("%s() : "FMT"\n", __FUNCTION__, ##ARG); \
+ } while (0)
+
+#define BUNDLE_ASSERT_PRINT(FMT, ARG...) \
+ do { \
+ printf("%5d", getpid()); \
+ printf("%s() : "FMT"\n", __FUNCTION__, ##ARG); \
+ } while (0)
#else
#define BUNDLE_LOG_PRINT(FMT, ARG...) SLOGD(FMT, ##ARG);
#define BUNDLE_EXCEPTION_PRINT(FMT, ARG...) SLOGW(FMT, ##ARG);
#define BUNDLE_ASSERT_PRINT(FMT, ARG...) SLOGE(FMT, ##ARG);
-#endif
+#endif /* _DEBUG_MODE_ */
+
+#endif /* __BUNDLE_LOG_H__ */