From 218adee785df7c79ac18395d056a2eb6d63c407f Mon Sep 17 00:00:00 2001 From: Michael Tokarev Date: Mon, 18 May 2009 17:34:30 +0400 Subject: [PATCH] format 'not supported on this platform' error message Format it in a similar way in all places, to make translation happier. No functional changes. --- src/net_setup.c | 2 +- src/net_socket.c | 2 +- src/tincd.c | 3 +-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/net_setup.c b/src/net_setup.c index ec47558d..f41f9527 100644 --- a/src/net_setup.c +++ b/src/net_setup.c @@ -314,7 +314,7 @@ bool setup_myself(void) #if !defined(SOL_IP) || !defined(IP_TOS) if(priorityinheritance) - logger(LOG_WARNING, _("PriorityInheritance not supported on this platform")); + logger(LOG_WARNING, _("%s not supported on this platform"), "PriorityInheritance"); #endif if(!get_config_int(lookup_config(config_tree, "MACExpire"), &macexpire)) diff --git a/src/net_socket.c b/src/net_socket.c index 82213e91..dcdcc0b5 100644 --- a/src/net_socket.c +++ b/src/net_socket.c @@ -123,7 +123,7 @@ int setup_listen_socket(const sockaddr_t *sa) return -1; } #else - logger(LOG_WARNING, _("BindToInterface not supported on this platform")); + logger(LOG_WARNING, _("%s not supported on this platform"), "BindToInterface"); #endif } diff --git a/src/tincd.c b/src/tincd.c index b0e95bef..257f9e49 100644 --- a/src/tincd.c +++ b/src/tincd.c @@ -161,8 +161,7 @@ static bool parse_options(int argc, char **argv) case 'L': /* no detach */ #ifndef HAVE_MLOCKALL - /* logger(LOG_ERR, _("%s not supported on this platform"), "mlockall()"); */ - logger(LOG_ERR, _("mlockall() not supported on this platform!")); + logger(LOG_ERR, _("%s not supported on this platform"), "mlockall()"); return false; #else do_mlock = true; -- 2.20.1