[android-porting] Re: pppd syslogs not printing for packets or IP addresses

2009-05-15 Thread John Michelau
A little more digging shows that the error, notice, etc routines are in pppd's utils.c, and they've been modified to call __android_log_vprint. On May 15, 2:54 pm, John Michelau wrote: > Is this a deficiency in Bionic or in the Android port of the syslog > APIs?  It seems that pppd expects notic

[android-porting] Re: pppd syslogs not printing for packets or IP addresses

2009-05-17 Thread Brian Liu
liblog in Android doesn't support "%I" format string for IP address. I use below workaround: notice("local IP address %I", go->ouraddr); CHANGE TO notice("local IP address %s", ip_ntoa(go_outaddr); On May 16, 3:58 am, John Michelau wrote: > A little more digging shows that the error, notice, et

[android-porting] Re: pppd syslogs not printing for packets or IP addresses

2009-05-18 Thread John Michelau
I've managed to fix the issue by having notice(), error(), etc call logit() and having logit() call __android_log_write() after it calls vslprintf() to handle the %I and %P. On May 17, 8:21 pm, Brian Liu wrote: > liblog in Android doesn't support "%I" format string for IP address. > > I use belo