Hi fadden, I am a very junior developer on linux world. I ran into the same problem fail to redirect stdout/stderr log to logcat. I have followed your suggestion and I modified the "sh" application and "ril" driver but I did not get any fprintf message from logcat.
I have tried to search related topic on internet but did not find out the solution. Can you provide me any suggestion? I am glad to try any possible solutions you provide. I really don't have idea for it. squall On 1月6日, 上午5時58分, fadden <fad...@android.com> wrote: > On Jan 1, 8:23 pm, lucky <wjj...@gmail.com> wrote: > > > I have tried below steps to turn onstdout/stderr log message but it > > seems only stderr log message works fine,stdoutmessage still not > > output from logcat. > > Make sure you disable buffering with something like: > > setvbuf(stdout, NULL, _IONBF, 0); > setvbuf(stderr, NULL, _IONBF, 0); > > Otherwise you won't see anything until the stdio buffer fills up and > flushes. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---