mirror of
https://gitlab.com/qemu-project/openbios.git
synced 2024-02-13 08:34:06 +08:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user