Modify conf keyword, UPPER_SNAKE_CASE to PascalCase 45/274645/3
authorSangYoun Kwak <sy.kwak@samsung.com>
Wed, 4 May 2022 05:47:18 +0000 (14:47 +0900)
committerHyotaek Shim <hyotaek.shim@samsung.com>
Wed, 4 May 2022 09:21:49 +0000 (09:21 +0000)
Change-Id: I8791c448ab4136be1c17c8a76d2ebfe268d6c2e3
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
conf/storage.conf
src/storage/storage.c

index 331e786..188f5e8 100644 (file)
@@ -1,7 +1,7 @@
-[LOWSTORAGE]
+[StorageUsageLevelThreshold]
 #5%
-WARNING_LEVEL=5
+WarningLevel=5
 #0.1%
-CRITICAL_LEVEL=0.1
+CriticalLevel=0.1
 #0.0%
-FULL_LEVEL=0
+FullLevel=0
index 1cbf337..7d21b7f 100644 (file)
@@ -667,7 +667,7 @@ static int load_config(struct parse_result *result, void *user_data)
        if (!info)
                return -EINVAL;
 
-       if (!MATCH(result->section, "LOWSTORAGE"))
+       if (!MATCH(result->section, "StorageUsageLevelThreshold"))
                return -EINVAL;
 
        _D("%s,%s,%s", result->section, result->name, result->value);
@@ -675,11 +675,11 @@ static int load_config(struct parse_result *result, void *user_data)
        name = result->name;
        value = result->value;
 
-       if (MATCH(name, "WARNING_LEVEL"))
+       if (MATCH(name, "WarningLevel"))
                info->warning_level = (double)atof(value);
-       else if (MATCH(name, "CRITICAL_LEVEL"))
+       else if (MATCH(name, "CriticalLevel"))
                info->critical_level = (double)atof(value);
-       else if (MATCH(name, "FULL_LEVEL"))
+       else if (MATCH(name, "FullLevel"))
                info->full_level = (double)atof(value);
 
        return 0;