X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fafs-config.c;h=2d42968515c1e4b06ec5abbd5aa720d7273c83ec;hb=9383ae1d276484f273cb11b6e5d92d1509118c96;hp=71d5ab74714b4ef8d7a305269dbd7852567b0afc;hpb=9dfc52b10b075bf538e9774176178007eec8e48a;p=src%2Fapp-framework-binder.git diff --git a/src/afs-config.c b/src/afs-config.c index 71d5ab74..2d429685 100644 --- a/src/afs-config.c +++ b/src/afs-config.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2015-2018 "IoT.bzh" + * Copyright (C) 2015-2019 "IoT.bzh" * Author José Bollo * * Licensed under the Apache License, Version 2.0 (the "License"); @@ -114,7 +114,7 @@ static AFB_options cliOptions[] = { {SET_AUTH_TOKEN, 1, "token", "Initial Secret [default=" AFS_SUPERVISOR_TOKEN ", use --token="" to allow any token]"}, - {WS_SERVICE, 1, "ws-server", "Povide supervisor as websocket"}, + {WS_SERVICE, 1, "ws-server", "Provide supervisor as websocket"}, {DISPLAY_VERSION, 0, "version", "Display version and copyright"}, {DISPLAY_HELP, 0, "help", "Display this help"}, @@ -141,7 +141,7 @@ static void printVersion(FILE * file) "\n" " afs-supervisor [Application Framework Supervisor] version="AFB_VERSION"\n" "\n" - " Copyright (C) 2015-2018 \"IoT.bzh\"\n" + " Copyright (C) 2015-2019 \"IoT.bzh\"\n" " afs-supervisor comes with ABSOLUTELY NO WARRANTY.\n" " Licence Apache 2\n" "\n"; @@ -263,11 +263,11 @@ static void parse_arguments(int argc, char **argv, struct afs_config *config) while ((optc = getopt_long(argc, argv, shortopts, gnuOptions, NULL)) != EOF) { switch (optc) { case SET_VERBOSE: - verbosity++; + verbose_inc(); break; case SET_QUIET: - verbosity--; + verbose_dec(); break; case SET_TCP_PORT: @@ -441,7 +441,7 @@ struct afs_config *afs_config_parse_arguments(int argc, char **argv) parse_environment(result); parse_arguments(argc, argv, result); fulfill_config(result); - if (verbosity >= 3) + if (verbose_wants(Log_Level_Info)) afs_config_dump(result); return result; }