Fix huge amount of warnings generated by logs
authorAndrii Shtompel <a.shtompel@samsung.com>
Thu, 30 Mar 2017 13:06:09 +0000 (16:06 +0300)
committerDan Mihai <Daniel.Mihai@microsoft.com>
Mon, 3 Apr 2017 19:59:02 +0000 (19:59 +0000)
Next warning generated by each call OIC_LOG/OIC_LOG_V were removed:
warning: comparison of unsigned expression >= 0 is always true

Change-Id: Ic2c4b8ba0e032255086a0ec6a0c3d3b4d643ae79
Signed-off-by: Andrii Shtompel <a.shtompel@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/18373
Tested-by: jenkins-iotivity <jenkins@iotivity.org>
Reviewed-by: Dan Mihai <Daniel.Mihai@microsoft.com>
resource/csdk/logger/include/logger.h

index dd8f7e3..83d031f 100644 (file)
@@ -103,7 +103,7 @@ typedef enum {
 #elif defined(SET_LOG_FATAL)
 #define IF_OC_PRINT_LOG_LEVEL(level) if (FATAL <= (level) && INFO_PRIVATE != (level))
 #else
-#define IF_OC_PRINT_LOG_LEVEL(level) if (DEBUG <= (level) && INFO_PRIVATE != (level))
+#define IF_OC_PRINT_LOG_LEVEL(level) if (INFO_PRIVATE != (level))
 #endif
 
 /**