From: José Bollo Date: Tue, 9 Jul 2019 16:05:31 +0000 (+0200) Subject: afb-args: Fix output of --version X-Git-Tag: halibut_7.99.3~5 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?p=src%2Fapp-framework-binder.git;a=commitdiff_plain;h=dee418b4cfb259fd7b03ec61496421119a318d93 afb-args: Fix output of --version The legacy V1 and V2 versions of bindings are no more printed if absent. The support of dynamic bindings is fixed. Bug-AGL: SPEC-2617 Signed-off-by: José Bollo Change-Id: I429c0e2cdfcbfba6e0f1e639dbcbc2ca90a345ed --- diff --git a/src/afb-args.c b/src/afb-args.c index 60360749..50bdc979 100644 --- a/src/afb-args.c +++ b/src/afb-args.c @@ -375,29 +375,21 @@ static void printVersion(FILE * file) "[" #if WITH_DYNAMIC_BINDING - "BINDINGS " "+" #else "-" #endif + "BINDINGS " #if WITH_LEGACY_BINDING_V1 - "+" -#else - "-" + "+V1 " #endif - "V1 " #if WITH_LEGACY_BINDING_VDYN - "+" -#else - "-" + "+VDYN " #endif - "VDYN " #if WITH_LEGACY_BINDING_V2 - "+" -#else - "-" + "+V2 " #endif - "V2 +V3]\n" + "+V3]\n" "\n", AFB_VERSION );