diff options
Diffstat (limited to 'util')
-rw-r--r-- | util/superiotool/superiotool.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/util/superiotool/superiotool.c b/util/superiotool/superiotool.c index 2defad1d5c..293aaa617d 100644 --- a/util/superiotool/superiotool.c +++ b/util/superiotool/superiotool.c @@ -105,7 +105,10 @@ static void dump_regs(const struct superio_registers reg_table[], printf(" (%s)", reg_table[i].ldn[j].name); regwrite(port, ldn_sel, reg_table[i].ldn[j].ldn); } else { - printf("Register dump:"); + if (reg_table[i].ldn[j].name == NULL) + printf("Register dump:"); + else + printf("(%s)", reg_table[i].ldn[j].name); } idx = reg_table[i].ldn[j].idx; |