From 51c756cfc15c63322df9fdb70d5c701cfb6b9a9f Mon Sep 17 00:00:00 2001 From: Hans Dedecker Date: Mon, 13 Feb 2017 09:29:12 +0100 Subject: odhcpd: display correct default log level in usage text Signed-off-by: Hans Dedecker --- src/odhcpd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/odhcpd.c b/src/odhcpd.c index ed96178..9a76e4d 100644 --- a/src/odhcpd.c +++ b/src/odhcpd.c @@ -52,7 +52,7 @@ static int ioctl_sock; static struct nl_sock *rtnl_socket = NULL; static int urandom_fd = -1; - +static int log_level = LOG_INFO; static void sighandler(_unused int signal) { @@ -65,7 +65,7 @@ static void print_usage(const char *app) "== %s Usage ==\n\n" " -h, --help Print this help\n" " -l level Specify log level 0..7 (default %d)\n", - app, LOG_WARNING + app, log_level ); } @@ -73,7 +73,7 @@ int main(int argc, char **argv) { openlog("odhcpd", LOG_PERROR | LOG_PID, LOG_DAEMON); int opt; - int log_level = LOG_INFO; + while ((opt = getopt(argc, argv, "hl:")) != -1) { switch (opt) { case 'h': -- cgit v1.2.3