diff options
author | Uwe Hermann <uwe@hermann-uwe.de> | 2007-10-07 20:01:23 +0000 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2007-10-07 20:01:23 +0000 |
commit | e9d4616a9566e29e69d3c967d35126abddd99cee (patch) | |
tree | 8798c2d8ca8d6ee3a1850d5fe4118a08628a5f35 /util/superiotool/superiotool.c | |
parent | 84bf1e250617fbb213fd0ebb9574b11c46346ed0 (diff) | |
download | coreboot-e9d4616a9566e29e69d3c967d35126abddd99cee.tar.xz |
Print a short message if no Super I/O chip could be detected (trivial).
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@2835 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'util/superiotool/superiotool.c')
-rw-r--r-- | util/superiotool/superiotool.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/util/superiotool/superiotool.c b/util/superiotool/superiotool.c index 6771996091..6c93f58c6b 100644 --- a/util/superiotool/superiotool.c +++ b/util/superiotool/superiotool.c @@ -25,6 +25,9 @@ /* Command line options. */ int dump = 0, dump_readable = 0, verbose = 0; +/* Global flag which indicates whether a chip was detected at all. */ +int chip_found = 0; + uint8_t regval(uint16_t port, uint8_t reg) { outb(reg, port); @@ -229,5 +232,8 @@ int main(int argc, char *argv[]) superio_ports_table[i].ports[j]); } + if (!chip_found) + printf("No Super I/O found\n"); + return 0; } |