Create temporary file to check wifi firmware state #3
[platform/core/connectivity/net-config.git] / include / log.h
old mode 100644 (file)
new mode 100755 (executable)
index 331a5f4..e48fb5e
@@ -31,15 +31,16 @@ extern "C" {
 
 #define NETCONFIG_TAG          "NETCONFIG"
 
-void __netconfig_debug(const char *format, ...);
+void           netconfig_log(const char *format, ...);
+void           log_cleanup(void);
 
 #define __LOG(level, format, arg...) \
        do { \
                if (NETCONFIG_DEBUG_FILE) { \
-                       __netconfig_debug("%s(%d) "format"\n", __FUNCTION__, __LINE__,  ## arg); \
+                       netconfig_log("%s(%d) "format"\n", __FUNCTION__, __LINE__,  ## arg); \
                } \
                SLOG(level, NETCONFIG_TAG, format, ## arg); \
-       } while(0)
+       } while (0)
 
 #define DBG(format, arg...)    __LOG(LOG_DEBUG, format, ## arg)
 #define INFO(format, arg...)   __LOG(LOG_INFO, format, ## arg)