[Dnsmasq-discuss] dnsmasq interaction with Android logcat

Simon Kelley simon at thekelleys.org.uk
Tue Nov 18 21:24:02 GMT 2014


Not sure what's happening here, but the use of "logwrapper" is rather
strange. As I understand it that logs whatever the child process send to
stdout. But dnsmasq has a proper logging system which is aware of the
android logging system and calls __android_log_vprint() (look for
ANDROID in src/log.c

I've never tested that code, but it was supplied by Google.

Cheers,

Simon.



n 18/11/14 17:25, Bruno De Paoli wrote:
> I'm running dnsmasq on an Android Gingerbread platform.
> 
> 
> 
> When I start dnsmasq via the Android service utility I discovered that a significant number of entries are missing from the logcat output. Only a small number at the start are in the log.
> 
> 
> 
> Also if I enter 'logcat -c' then the log is completely full of the following entries:
> 
> 
> 
> 01-02 01:59:22.750 E/dnsmasq ( 2540): Unknown cmd ''
> 
> 01-02 01:59:22.750 E/dnsmasq ( 2540): Unknown cmd ''
> 
> 01-02 01:59:22.750 E/dnsmasq ( 2540): Unknown cmd ''
> 
> 01-02 01:59:22.750 E/dnsmasq ( 2540): Unknown cmd ''
> 
> 01-02 01:59:23.080 E/dnsmasq ( 2540): Unknown cmd ''
> 
> 01-02 01:59:23.080 E/dnsmasq ( 2540): Unknown cmd ''
> 
> 01-02 01:59:23.080 E/dnsmasq ( 2540): Unknown cmd ''
> 
> 
> 
> 'logcat -c' clears the entire log so this is very strange indeed.
> 
> 
> 
> 
> 
> If I start dnsmasq via the command line (i.e. /system/bin/dnsmasq -k -C /system/etc/dnsmasq.conf) then I do not see this behavior.
> 
> 
> 
> 
> 
> Has anyone seen anything like this before or suggest what might be happening?
> 
> 
> 
> Here's the line in init.rc that defines the service
> 
> 
> 
> service dhcpsrv  /system/bin/logwrapper  /system/bin/dnsmasq -k -C /system/etc/dnsmasq.conf
> 
>     disabled
> 
>     oneshot
> 
> 
> 
> 
> 
> Thanks,
> 
> Bruno
> 
> 
> 
> 
> 
> 
> 
> 
> _______________________________________________
> Dnsmasq-discuss mailing list
> Dnsmasq-discuss at lists.thekelleys.org.uk
> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
> 




More information about the Dnsmasq-discuss mailing list