From 5806ce0a68c54d083813db367ff0ce337ee5d1ae Mon Sep 17 00:00:00 2001 From: Jim Klimov Date: Mon, 22 Jul 2024 20:17:16 +0200 Subject: [PATCH] clients/upsclient.c: when host is known NULL, report that directly, no need for NUT_STRARG() [#2512] Signed-off-by: Jim Klimov --- clients/upsclient.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clients/upsclient.c b/clients/upsclient.c index 37ee6955d0..2c437544aa 100644 --- a/clients/upsclient.c +++ b/clients/upsclient.c @@ -1025,7 +1025,7 @@ int upscli_tryconnect(UPSCONN_t *ups, const char *host, uint16_t port, int flags ups->fd = -1; if (!host) { - upslogx(LOG_WARNING, "%s: Host not found: '%s'", __func__, NUT_STRARG(host)); + upslogx(LOG_WARNING, "%s: Host not specified", __func__); ups->upserror = UPSCLI_ERR_NOSUCHHOST; return -1; }