From: Yong Shen yong.shen@linaro.org
Add a simple postfix to 'status' and 'state' when displaying regulator information, to emphasis that 'status' is about hardware status while 'state' is a software concept.
Signed-off-by: Yong Shen yong.shen@linaro.org --- display.c | 4 ++-- regulator.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/display.c b/display.c index 2f7d655..5d30765 100644 --- a/display.c +++ b/display.c @@ -201,8 +201,8 @@ void show_regulator_info(struct regulator_info *reg_info, int nr_reg, int verbos werase(regulator_win); wattron(regulator_win, A_BOLD); print(regulator_win, 0, 0, "Name"); - print(regulator_win, 12, 0, "Status"); - print(regulator_win, 24, 0, "State"); + print(regulator_win, 12, 0, "Status(HW)"); + print(regulator_win, 24, 0, "State(SW)"); print(regulator_win, 36, 0, "Type"); print(regulator_win, 48, 0, "Users"); print(regulator_win, 60, 0, "Microvolts"); diff --git a/regulator.c b/regulator.c index 60529ed..8036e32 100644 --- a/regulator.c +++ b/regulator.c @@ -64,9 +64,9 @@ void regulator_print_info(struct regulator_info *reg_info, int nr_reg, int verbo printf("Regulator %d:\n", i + 1); print_string_val("name", reg_info[i].name); if (strcmp(reg_info[i].status, "")) - print_string_val("status", reg_info[i].status); + print_string_val("status(HW)", reg_info[i].status); if (strcmp(reg_info[i].state, "")) - print_string_val("state", reg_info[i].state); + print_string_val("state(SW)", reg_info[i].state);
if (!verbose) continue;