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 <liujianh...@gmail.com> wrote: > 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 <jpit...@gmail.com> wrote: > > > 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 <jpit...@gmail.com> wrote: > > > > Is this a deficiency in Bionic or in the Android port of the syslog > > > APIs? It seems that pppd expects notice, error, etc to recognize the > > > %I (for IP addresses) and %P for packets and print them accordingly. > > > Instead, we get the following: > > > > 01-01 00:06:33.067: DEBUG/pppd(422): sent P > > > 01-01 00:06:33.067: DEBUG/pppd(422): rcvd P > > > 01-01 00:06:33.067: DEBUG/pppd(422): sent P > > > 01-01 00:06:33.067: DEBUG/pppd(422): rcvd P > > > > 01-01 00:06:33.083: INFO/pppd(422): local IP address I > > > 01-01 00:06:33.083: INFO/pppd(422): remote IP address I > > > 01-01 00:06:33.083: INFO/pppd(422): primary DNS address I > > > 01-01 00:06:33.083: INFO/pppd(422): secondary DNS address I --~--~---------~--~----~------------~-------~--~----~ unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting -~----------~----~----~----~------~----~------~--~---