[Dnsmasq-discuss] Patch to change dnsmasq logentries

Olaf Westrik weizen_42 at ipcop-forum.de
Fri Feb 27 21:43:28 GMT 2009


Simon Kelley wrote:
> Carlos Carvalho wrote:
>   
>> OTOH, changing the strings will make the logs more concise... 
>>     
> Only a few, and it adds lots of copies of the string "DHCP:" to the
> binary. The ones which are obviously more concise could  be changed.
>
>   
Here is one:

--- dnsmasq-2.47.orig/src/dhcp.c    2009-02-26 16:18:37.000000000 +0100
+++ dnsmasq-2.47/src/dhcp.c    2009-02-27 22:20:22.000000000 +0100
@@ -35,7 +35,7 @@
 #endif
 
   if (fd == -1)
-    die (_("cannot create DHCP socket : %s"), NULL, EC_BADNET);
+    die (_("cannot create DHCP socket: %s"), NULL, EC_BADNET);
  
   if (!fix_fd(fd) ||
 #if defined(IP_MTU_DISCOVER) && defined(IP_PMTUDISC_DONT)


Several translations had already (mysteriously ;-)) changed "socket :" 
into "socket:".


Olaf
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dnsmasq-2.47-modify_log_entry.patch
Type: text/x-diff
Size: 4276 bytes
Desc: not available
Url : http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20090227/569af6ac/dnsmasq-2.47-modify_log_entry-0001.bin


More information about the Dnsmasq-discuss mailing list