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
diff --git a/util/superiotool/superiotool.c b/util/superiotool/superiotool.c
index 6771996..6c93f58 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 @@
 				superio_ports_table[i].ports[j]);
 	}
 
+	if (!chip_found)
+		printf("No Super I/O found\n");
+
 	return 0;
 }