X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Ftincctl.c;h=9b39f2ce19dd5ba55043718eae54e7200d47584d;hb=668750c022a02cc54756316907f1cbbf7d673025;hp=4a3682f3894d7cdcbb4371faf07b78c1f24eede8;hpb=90cde91141ec61be4354d8deab21edb8fdf01022;p=tinc diff --git a/src/tincctl.c b/src/tincctl.c index 4a3682f3..9b39f2ce 100644 --- a/src/tincctl.c +++ b/src/tincctl.c @@ -612,7 +612,7 @@ static void pcap(int fd, FILE *out, uint32_t snaplen) { } } -static void logcontrol(int fd, FILE *out, int level) { +static void log_control(int fd, FILE *out, int level) { sendline(fd, "%d %d %d", CONTROL, REQ_LOG, level); char data[1024]; char line[32]; @@ -1518,7 +1518,7 @@ static int cmd_log(int argc, char *argv[]) { signal(SIGINT, sigint_handler); #endif - logcontrol(fd, stdout, argc > 1 ? atoi(argv[1]) : -1); + log_control(fd, stdout, argc > 1 ? atoi(argv[1]) : DEBUG_UNSET); #ifdef SIGINT signal(SIGINT, SIG_DFL);