diff options
author | José Bollo <jose.bollo@iot.bzh> | 2019-07-09 18:05:31 +0200 |
---|---|---|
committer | José Bollo <jose.bollo@iot.bzh> | 2019-07-09 18:07:57 +0200 |
commit | dee418b4cfb259fd7b03ec61496421119a318d93 (patch) | |
tree | 2bfe22d2ad6c7cd6f91f914384aab7b17da65d0e | |
parent | 3aa80df989dc52a010a40b247975fd779a43157f (diff) |
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 <jose.bollo@iot.bzh>
Change-Id: I429c0e2cdfcbfba6e0f1e639dbcbc2ca90a345ed
-rw-r--r-- | src/afb-args.c | 18 |
1 files changed, 5 insertions, 13 deletions
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 ); |