From e3196e55c8dc3729d65b167ef85b6de47f38e98d Mon Sep 17 00:00:00 2001 From: hyunuktak Date: Tue, 20 Nov 2018 14:45:04 +0900 Subject: [PATCH] Remove error log for reading classid from cgroup Change-Id: Ic8783c8cd385f6932a826664ca7d7c05bfba93cc Signed-off-by: hyunuktak --- include/stc-manager-util.h | 3 ++- src/helper/helper-net-cls.c | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) mode change 100644 => 100755 include/stc-manager-util.h mode change 100644 => 100755 src/helper/helper-net-cls.c diff --git a/include/stc-manager-util.h b/include/stc-manager-util.h old mode 100644 new mode 100755 index 2275b85..b12fff9 --- a/include/stc-manager-util.h +++ b/include/stc-manager-util.h @@ -274,7 +274,8 @@ static inline bool strstart_with(const char *str, const char *with) #define ret_value_errno_msg_if(expr, val, fmt, arg...) do { \ if (expr) { \ - STC_LOGE(fmt, ##arg); \ + if (STC_DEBUG_LOG) \ + STC_LOGE(fmt, ##arg); \ return val; \ } \ } while (0) diff --git a/src/helper/helper-net-cls.c b/src/helper/helper-net-cls.c old mode 100644 new mode 100755 index faa5942..3f460f7 --- a/src/helper/helper-net-cls.c +++ b/src/helper/helper-net-cls.c @@ -80,7 +80,6 @@ static stc_error_e __get_classid_from_cgroup(const char *cgroup, int ret = cgroup_read_node_uint32(buf, CLASSID_FILE_NAME, classid); if (ret < 0) { - STC_LOGE("Can't read classid from cgroup %s", buf); //LCOV_EXCL_LINE *classid = STC_UNKNOWN_CLASSID; return STC_ERROR_NO_DATA; } -- 2.7.4