From afe83092020d37d1b8629b3b92f9179e925e72fe Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Fri, 28 Sep 2007 15:45:43 +0000 Subject: Random minor fixes. Use svn revision as superiotool version number. Make the -V output more informative. Signed-off-by: Uwe Hermann Acked-by: Uwe Hermann git-svn-id: svn://svn.coreboot.org/coreboot/trunk@2814 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- util/superiotool/superiotool.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'util/superiotool/superiotool.c') 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 * Copyright (C) 2007 Uwe Hermann @@ -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)); } -- cgit v1.2.3