Improve version number handling

Signed-off-by: Blue Swirl <blauwirbel@gmail.com>

git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@533 f158a5a8-5612-0410-a976-696ce0be7e32
This commit is contained in:
Blue Swirl
2009-08-02 18:20:53 +00:00
parent 17d787ee2e
commit d4b64752eb
12 changed files with 26 additions and 26 deletions

View File

@@ -27,6 +27,7 @@
#include "openbios/kernel.h"
#include "dict.h"
#include "cross.h"
#include "openbios-version.h"
#define MEMORY_SIZE (1024*1024) /* 1M ram for hosted system */
@@ -992,11 +993,12 @@ int main(int argc, char *argv[])
switch (c) {
case 'V':
printk("Version " VERSION "\n");
printk("Version " OPENBIOS_VERSION_STR "\n");
return 0;
case 'h':
case '?':
printk("Version " VERSION "\n" USAGE, argv[0]);
printk("Version " OPENBIOS_VERSION_STR "\n" USAGE,
argv[0]);
return 0;
case 'v':
verbose = 1;