Add package id to the lifecycle info
[platform/core/appfw/appcore-widget.git] / src / widget-log.h
index e8eb56d..980f3e3 100755 (executable)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2015 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2015 - 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.
 #define _W(...) LOGW(__VA_ARGS__)
 #endif
 
-#define _warn_if(expr, fmt, arg...) do { \
-        if (expr) { \
-            _ERR(fmt, ##arg); \
-        } \
-    } while (0)
-
-#define _ret_if(expr) do { \
-        if (expr) { \
-            return; \
-        } \
-    } while (0)
-
-#define _retv_if(expr, val) do { \
-        if (expr) { \
-            return (val); \
-        } \
-    } while (0)
-
-#define _retm_if(expr, fmt, arg...) do { \
-        if (expr) { \
-            _ERR(fmt, ##arg); \
-            return; \
-        } \
-    } while (0)
-
-#define _retvm_if(expr, val, fmt, arg...) do { \
-        if (expr) { \
-            _ERR(fmt, ##arg); \
-            return (val); \
-        } \
-    } while (0)
-
-
-#endif //__APPFW_WIDGET_LOG_H_
+#define _warn_if(expr, fmt, arg...)            \
+       do {                                    \
+               if (expr)                       \
+                       _ERR(fmt, ##arg);       \
+       } while (0)
+
+#define _ret_if(expr)                          \
+       do {                                    \
+               if (expr)                       \
+                       return;                 \
+       } while (0)
+
+#define _retv_if(expr, val)                    \
+       do {                                    \
+               if (expr)                       \
+                       return (val);           \
+       } while (0)
+
+#define _retm_if(expr, fmt, arg...)            \
+       do {                                    \
+               if (expr) {                     \
+                       _ERR(fmt, ##arg);       \
+                       return;                 \
+               }                               \
+       } while (0)
+
+#define _retvm_if(expr, val, fmt, arg...)      \
+       do {                                    \
+               if (expr) {                     \
+                       _ERR(fmt, ##arg);       \
+                       return (val);           \
+               }                               \
+       } while (0)
+
+#endif /* __APPFW_WIDGET_LOG_H_ */
+