Patchwork [v2,2/2] bsd-user: Output package version

login
register
mail settings
Submitter Andreas Färber
Date April 27, 2012, 10:08 a.m.
Message ID <1335521295-26117-3-git-send-email-afaerber@suse.de>
Download mbox | patch
Permalink /patch/155456/
State New
Headers show

Comments

Andreas Färber - April 27, 2012, 10:08 a.m.
Commit 4a19f1eced611e7c3a0fba07d13515cbc73da09f (r7036) added a
configure option --with-pkgversion for distributions and forks to label
their derived versions.

bsd-user was not updated at the time, so fix this while at it.

Signed-off-by: Andreas Färber <afaerber@suse.de>
---
 bsd-user/main.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch

diff --git a/bsd-user/main.c b/bsd-user/main.c
index b2b5b69..3434d48 100644
--- a/bsd-user/main.c
+++ b/bsd-user/main.c
@@ -672,7 +672,7 @@  void cpu_loop(CPUSPARCState *env)
 
 static void usage(void)
 {
-    printf("qemu-" TARGET_ARCH " version " QEMU_VERSION
+    printf("qemu-" TARGET_ARCH " version " QEMU_VERSION QEMU_PKGVERSION
            ", Copyright (c) 2003-2012 Fabrice Bellard and contributors\n"
            "usage: qemu-" TARGET_ARCH " [options] program [arguments...]\n"
            "BSD CPU emulator (compiled for %s emulation)\n"