summaryrefslogtreecommitdiff
path: root/util/superiotool/superiotool.c
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2007-09-28 15:45:43 +0000
committerUwe Hermann <uwe@hermann-uwe.de>2007-09-28 15:45:43 +0000
commitafe83092020d37d1b8629b3b92f9179e925e72fe (patch)
tree417b1e7a9720742ef6ad231f2970e377f491c158 /util/superiotool/superiotool.c
parent945045b1ea380f8224bee426cb91b897562df1c8 (diff)
downloadcoreboot-afe83092020d37d1b8629b3b92f9179e925e72fe.tar.xz
Random minor fixes. Use svn revision as superiotool version number.
Make the -V output more informative. Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de> Acked-by: Uwe Hermann <uwe@hermann-uwe.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@2814 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'util/superiotool/superiotool.c')
-rw-r--r--util/superiotool/superiotool.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/util/superiotool/superiotool.c b/util/superiotool/superiotool.c
index 99d97275d5..9bde779a81 100644
--- a/util/superiotool/superiotool.c
+++ b/util/superiotool/superiotool.c
@@ -1,5 +1,5 @@
/*
- * This file is part of the LinuxBIOS project.
+ * This file is part of the superiotool project.
*
* Copyright (C) 2006 Ronald Minnich <rminnich@gmail.com>
* Copyright (C) 2007 Uwe Hermann <uwe@hermann-uwe.de>
@@ -155,15 +155,17 @@ void dump_superio_readable(uint16_t port)
printf("No human-readable dump available for this Super I/O\n");
}
-void no_superio_found(uint16_t port)
+void no_superio_found(const char *vendor, const char *info, uint16_t port)
{
if (!verbose)
return;
if (inb(port) == 0xff)
- printf("No Super I/O chip found at 0x%04x\n", port);
+ /* Yes, there's no space between '%s' and 'at'! */
+ printf("Probing for %s Super I/O %sat 0x%x... failed\n",
+ vendor, info, port);
else
- printf("Probing 0x%04x, failed (0x%02x), data returns 0x%02x\n",
+ printf("Probing 0x%x, failed (0x%02x), data returns 0x%02x\n",
port, inb(port), inb(port + 1));
}