From 63f41bbe0c6c2a6a8c968836a0d194a4872f31d7 Mon Sep 17 00:00:00 2001 From: Taekki Kim Date: Tue, 13 Sep 2016 21:58:37 +0900 Subject: [PATCH] [COMMON] samsung: exynos-dm: fix sysfs message logging Change-Id: I73778d5f03da27e17de04d7fabbf50b51b828ac7 Signed-off-by: Taekki Kim --- drivers/soc/samsung/exynos-dm.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/soc/samsung/exynos-dm.c b/drivers/soc/samsung/exynos-dm.c index 97573337ce6d..dacd8fc2955d 100644 --- a/drivers/soc/samsung/exynos-dm.c +++ b/drivers/soc/samsung/exynos-dm.c @@ -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; \ } \ \ -- 2.20.1