De-uglify the --version output (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@2815 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
Uwe Hermann
2007-10-01 13:39:02 +00:00
parent afe8309202
commit e4d4ebabbd
3 changed files with 7 additions and 3 deletions

View File

@ -172,6 +172,7 @@ void no_superio_found(const char *vendor, const char *info, uint16_t port)
int main(int argc, char *argv[])
{
int i, j, opt, option_index;
char tmp[80];
const static struct option long_options[] = {
{"dump", no_argument, NULL, 'd'},
@ -195,7 +196,10 @@ int main(int argc, char *argv[])
verbose = 1;
break;
case 'v':
printf("superiotool %s\n", SUPERIOTOOL_VERSION);
strncpy((char *)&tmp,
(const char *)&SUPERIOTOOL_VERSION[6],
strlen(SUPERIOTOOL_VERSION) - 8);
printf("superiotool r%s\n", (char *)&tmp);
exit(0);
break;
case 'h':