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:
@@ -32,6 +32,7 @@
|
||||
#include "openbios/stack.h"
|
||||
#include "unix/plugins.h"
|
||||
#include "openbios/bindings.h"
|
||||
#include "openbios-version.h"
|
||||
|
||||
#include "blk.h"
|
||||
|
||||
@@ -415,11 +416,12 @@ int main(int argc, char *argv[])
|
||||
|
||||
switch (c) {
|
||||
case 'V':
|
||||
printk(BANNER "Version " VERSION "\n");
|
||||
printk(BANNER "Version " OPENBIOS_VERSION_STR "\n");
|
||||
return 0;
|
||||
case 'h':
|
||||
case '?':
|
||||
printk(BANNER "Version " VERSION "\n" USAGE, argv[0]);
|
||||
printk(BANNER "Version " OPENBIOS_VERSION_STR "\n"
|
||||
USAGE, argv[0]);
|
||||
return 0;
|
||||
case 'v':
|
||||
verbose = 1;
|
||||
|
||||
Reference in New Issue
Block a user