]> git.meshlink.io Git - meshlink/commitdiff
format 'not supported on this platform' error message
authorMichael Tokarev <mjt@corpit.ru>
Mon, 18 May 2009 13:34:30 +0000 (17:34 +0400)
committerGuus Sliepen <guus@tinc-vpn.org>
Mon, 18 May 2009 13:35:52 +0000 (15:35 +0200)
Format it in a similar way in all places, to make translation happier.
No functional changes.

src/net_setup.c
src/net_socket.c
src/tincd.c

index ec47558d9cdae13f066746cd20d729bd6e708f0d..f41f9527df89d34d929dfdbec6676f35a10c546f 100644 (file)
@@ -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))
index 82213e91b1ac50852e5fc7cbf8d386bf1f7694d7..dcdcc0b50b30efe83a4d9142bf447828a2a1edb0 100644 (file)
@@ -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
        }
 
index b0e95beff502b7677d5825dbf77730a3a31bcd37..257f9e49f05d5495fdc2291439e607611413486e 100644 (file)
@@ -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;