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
This commit is contained in:
Uwe Hermann
2007-09-28 15:45:43 +00:00
parent 945045b1ea
commit afe8309202
9 changed files with 34 additions and 32 deletions

View File

@@ -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));
}