[COMMON] samsung: exynos-dm: fix sysfs message logging
authorTaekki Kim <taekki.kim@samsung.com>
Tue, 13 Sep 2016 12:58:37 +0000 (21:58 +0900)
committerChungwoo Park <cww.park@samsung.com>
Mon, 21 May 2018 08:26:04 +0000 (17:26 +0900)
Change-Id: I73778d5f03da27e17de04d7fabbf50b51b828ac7
Signed-off-by: Taekki Kim <taekki.kim@samsung.com>
drivers/soc/samsung/exynos-dm.c

index 97573337ce6de1db073448ada349fc5061177840..dacd8fc2955d4011eceb3fcf0779c873fcda619a 100644 (file)
@@ -82,8 +82,8 @@ static ssize_t show_constraint_tables_##type_name                                     \
        constraint_list = get_min_constraint_list(&dm->dm_data[dm_type]);               \
        if (list_empty(constraint_list)) {                                              \
                count += snprintf(buf + count, PAGE_SIZE,                               \
-                               "This dm_type have not constraint tables\n\n");         \
-               return count;                                                           \
+                               "This dm_type have not min constraint tables\n\n");     \
+               goto next;                                                              \
        }                                                                               \
                                                                                        \
        list_for_each_entry(constraint, constraint_list, node) {                        \
@@ -108,10 +108,11 @@ static ssize_t show_constraint_tables_##type_name                                 \
                                "-------------------------------------------------\n"); \
        }                                                                               \
                                                                                        \
+next:                                                                                  \
        constraint_list = get_max_constraint_list(&dm->dm_data[dm_type]);               \
        if (list_empty(constraint_list)) {                                              \
                count += snprintf(buf + count, PAGE_SIZE,                               \
-                               "This dm_type have not constraint tables\n\n");         \
+                               "This dm_type have not max constraint tables\n\n");     \
                return count;                                                           \
        }                                                                               \
                                                                                        \