diff options
author | Anders Juel Jensen <andersjjensen@gmail.com> | 2010-08-22 19:40:11 +0000 |
---|---|---|
committer | Stefan Reinauer <stepan@openbios.org> | 2010-08-22 19:40:11 +0000 |
commit | 4fd7df9535eb2f7eeeba87ebd260a8094fe59ff5 (patch) | |
tree | b36a34ba9dfef0d476e22e679dd10515e2a1e1e6 | |
parent | 280275dcb5348202f5e545a7fdb4e896eb417906 (diff) | |
download | coreboot-4fd7df9535eb2f7eeeba87ebd260a8094fe59ff5.tar.xz |
Add support for non LDN register/device naming.
Signed-off-by: Anders Juel Jensen <andersjjensen@gmail.com>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5726 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
-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; |