From: Daniel Salzman Date: Thu, 27 Apr 2023 06:27:53 +0000 (+0200) Subject: ctl: remove redundant 'version: ' prefix from 'status version' output X-Git-Tag: v3.4.dev~143^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7acc1f23ec71bfd331b39bcfcfc906b91231990e;p=thirdparty%2Fknot-dns.git ctl: remove redundant 'version: ' prefix from 'status version' output --- diff --git a/src/knot/ctl/commands.c b/src/knot/ctl/commands.c index 1935da2ccc..05a1cb8c30 100644 --- a/src/knot/ctl/commands.c +++ b/src/knot/ctl/commands.c @@ -1805,7 +1805,7 @@ static int server_status(ctl_args_t *args) int ret; if (strcasecmp(type, "version") == 0) { - ret = snprintf(buff, sizeof(buff), "Version: %s", PACKAGE_VERSION); + ret = snprintf(buff, sizeof(buff), "%s", PACKAGE_VERSION); } else if (strcasecmp(type, "workers") == 0) { int running_bkg_wrk, wrk_queue; worker_pool_status(args->server->workers, false, &running_bkg_wrk, &wrk_queue);