LOG Format is changed
authorSeungyoun Ju <sy39.ju@samsung.com>
Tue, 12 Feb 2013 03:11:30 +0000 (12:11 +0900)
committerSeungyoun Ju <sy39.ju@samsung.com>
Tue, 12 Feb 2013 07:17:05 +0000 (16:17 +0900)
- Issues
  LOG Format is changed

- Fix description
  Line number and Function name are already displayed by provided macro.
  So it is not required to print those in each module.

  And log tag is changed as per guide.
  (tethering => CAPI_NETWORK_TETHERING)

Change-Id: I1769d83ebc8368ea1949285b611c746a383943a4

include/tethering_private.h

index be57713..85297e5 100644 (file)
@@ -17,7 +17,7 @@
 #ifndef __TETHERING_PRIVATE_H__
 #define __TETHERING_PRIVATE_H__
 
-#define LOG_TAG        "tethering"
+#define LOG_TAG        "CAPI_NETWORK_TETHERING"
 
 #include <glib.h>
 #include <dbus/dbus-glib.h>
@@ -37,9 +37,9 @@ extern "C" {
 #  define DEPRECATED_API __attribute__ ((deprecated))
 #endif
 
-#define DBG(fmt, args...) LOGD("[%s()][Ln:%d] "fmt, __func__, __LINE__, ##args)
-#define WARN(fmt, args...) LOGW("[%s()][Ln:%d] "fmt, __func__, __LINE__, ##args)
-#define ERR(fmt, args...) LOGE("[%s()][Ln:%d] "fmt, __func__, __LINE__, ##args)
+#define DBG(fmt, args...) LOGD(fmt, ##args)
+#define WARN(fmt, args...) LOGW(fmt, ##args)
+#define ERR(fmt, args...) LOGE(fmt, ##args)
 
 #define _warn_if(expr, fmt, arg...) do { \
                if (expr) { \