I have add main function to this file and modified the Android.mk to tell the compiler to compile this file to be an executable. That works and now printf can be used.
On May 25, 1:15 am, Robert Greenwalt <[email protected]> wrote: > searching that file for "log" I find > > syslog(LOG_NOTICE|LOG_AUTH, "mylog %s", "foo"); > > seems like a reasonable place to start. > > > > > > > > On Tue, May 24, 2011 at 5:38 AM, 捷超 王 <[email protected]> wrote: > > Anyone knows? > > > On May 20, 5:17 pm, 捷超 王 <[email protected]> wrote: > > > Hi, developers: > > > > I am currently developing an IPv6 DNS resolver on Android-x86 platform > > > in socket programming in C so I would like to modify some code in / > > > home/ubuntu/android-x86/bionic/libc/netbsd/net/getaddrinfo.c". I want > > > to do debugging in this file so I am trying to adding debug output > > > statements in this file. > > > > I 've tried "LOGE", "printf" and "fprintf" but none of them works. > > > Is there anyone knows what kind of debug output statement is valid in > > > this file? Thank you very much!! > > > > Best wishes, > > > > Jiechao Wang > > > BUPT > > > -- > > unsubscribe: [email protected] > > website:http://groups.google.com/group/android-porting -- unsubscribe: [email protected] website: http://groups.google.com/group/android-porting
