Make --version uniform and avoid hard-coded program name.

This commit is contained in:
Grégoire Sutre 2010-06-08 12:52:42 +02:00
parent e8a6f3b6a5
commit 0ea7c4f93c
12 changed files with 70 additions and 30 deletions

View file

@ -1307,7 +1307,7 @@ main (int argc, char *argv[])
break;
case 'V':
printf ("grub-mkimage (%s) %s\n", PACKAGE_NAME, PACKAGE_VERSION);
printf ("%s (%s) %s\n", program_name, PACKAGE_NAME, PACKAGE_VERSION);
return 0;
case 'v':