From 65857db6a9e48587c5b766a95cfd27f9e97b836b Mon Sep 17 00:00:00 2001 From: Kyeongdon Kim Date: Fri, 8 May 2020 16:33:41 +0900 Subject: [PATCH] lmkd: fix type warning from static analysis tools In memcg process stat path, %u in format string (no.2) requires 'unsigned int' but the argument type is 'signed int'. Bug: NA Test: check statslog with lmkd operation Signed-off-by: Kyeongdon Kim Change-Id: I3fcee57efbf26724878a81c8e1acd419aab8b95b --- statslog.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/statslog.h b/statslog.h index 9cba6b2..5992a49 100644 --- a/statslog.h +++ b/statslog.h @@ -39,7 +39,7 @@ struct memory_stat { #ifdef LMKD_LOG_STATS -#define MEMCG_PROCESS_MEMORY_STAT_PATH "/dev/memcg/apps/uid_%u/pid_%u/memory.stat" +#define MEMCG_PROCESS_MEMORY_STAT_PATH "/dev/memcg/apps/uid_%u/pid_%d/memory.stat" #define PROC_STAT_FILE_PATH "/proc/%d/stat" #define PROC_STAT_BUFFER_SIZE 1024 #define BYTES_IN_KILOBYTE 1024