[android-porting] Re: logcat can't display all log?
maybe need change the log level in init.rc?? On Feb 17, 11:30 am, forest forest...@gmail.com wrote: for example: void fun() { static int c = 0; LOGI(call func() %d, ++c); } the log sometimes display call func() 1 call func() 5 call func() 8 .. when debug PVMFStatus AndroidAudioInput::DoRead() int the file external/opencore/android/author/android_audio_input.cpp static int AndroidAudioInputDoRead = 0; LOGI(--AndroidAudioInputDoRead=%d, + +AndroidAudioInputDoRead); find above case --~--~-~--~~~---~--~~ unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting -~--~~~~--~~--~--~---
[android-porting] Re: logcat can't display all log?
Ah, I forgot that you are doing the increment inside the call. This could be a classical macro expansion issue. I think all your outputs are happening, but the increment can be expanded in several places inside the macro. Try taking the ++c outside of the call: ++c; LOGI(...); forest wrote: add \n has no effect On 2月17日, 上午11时36分, Sean McNeil seanmcne...@gmail.com wrote: Maybe try a \n at the end of the string? forest wrote: for example: void fun() { static int c = 0; LOGI(call func() %d, ++c); } the log sometimes display call func() 1 call func() 5 call func() 8 .. when debug PVMFStatus AndroidAudioInput::DoRead() int the file external/opencore/android/author/android_audio_input.cpp static int AndroidAudioInputDoRead = 0; LOGI(--AndroidAudioInputDoRead=%d, + +AndroidAudioInputDoRead); find above case- 隐藏被引用文字 - - 显示引用的文字 - --~--~-~--~~~---~--~~ unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting -~--~~~~--~~--~--~---
[android-porting] Re: logcat can't display all log?
You can try to launch logcat like below:adb logcat -r 8000 -f /data/log.txt Perhaps it works. On Tue, Feb 17, 2009 at 9:25 PM, Sean McNeil seanmcne...@gmail.com wrote: Ah, I forgot that you are doing the increment inside the call. This could be a classical macro expansion issue. I think all your outputs are happening, but the increment can be expanded in several places inside the macro. Try taking the ++c outside of the call: ++c; LOGI(...); forest wrote: add \n has no effect On 2月17日, 上午11时36分, Sean McNeil seanmcne...@gmail.com wrote: Maybe try a \n at the end of the string? forest wrote: for example: void fun() { static int c = 0; LOGI(call func() %d, ++c); } the log sometimes display call func() 1 call func() 5 call func() 8 .. when debug PVMFStatus AndroidAudioInput::DoRead() int the file external/opencore/android/author/android_audio_input.cpp static int AndroidAudioInputDoRead = 0; LOGI(--AndroidAudioInputDoRead=%d, + +AndroidAudioInputDoRead); find above case- 隐藏被引用文字 - - 显示引用的文字 - --~--~-~--~~~---~--~~ unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting -~--~~~~--~~--~--~---
[android-porting] Re: logcat can't display all log?
logcat -r 8000 -f /data/log.txt can record all log,Freepine,thank you very much, hi,Sean McNeil,thank you too, ++c; LOGI(...); has no effect On 2月17日, 下午10时02分, Freepine freep...@gmail.com wrote: You can try to launch logcat like below:adb logcat -r 8000 -f /data/log.txt Perhaps it works. On Tue, Feb 17, 2009 at 9:25 PM, Sean McNeil seanmcne...@gmail.com wrote: Ah, I forgot that you are doing the increment inside the call. This could be a classical macro expansion issue. I think all your outputs are happening, but the increment can be expanded in several places inside the macro. Try taking the ++c outside of the call: ++c; LOGI(...); forest wrote: add \n has no effect On 2月17日, 上午11时36分, Sean McNeil seanmcne...@gmail.com wrote: Maybe try a \n at the end of the string? forest wrote: for example: void fun() { static int c = 0; LOGI(call func() %d, ++c); } the log sometimes display call func() 1 call func() 5 call func() 8 .. when debug PVMFStatus AndroidAudioInput::DoRead() int the file external/opencore/android/author/android_audio_input.cpp static int AndroidAudioInputDoRead = 0; LOGI(--AndroidAudioInputDoRead=%d, + +AndroidAudioInputDoRead); find above case- 隐藏被引用文字 - - 显示引用的文字 -- 隐藏被引用文字 - - 显示引用的文字 - --~--~-~--~~~---~--~~ unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting -~--~~~~--~~--~--~---
[android-porting] Re: logcat can't display all log?
Maybe try a \n at the end of the string? forest wrote: for example: void fun() { static int c = 0; LOGI(call func() %d, ++c); } the log sometimes display call func() 1 call func() 5 call func() 8 .. when debug PVMFStatus AndroidAudioInput::DoRead() int the file external/opencore/android/author/android_audio_input.cpp static int AndroidAudioInputDoRead = 0; LOGI(--AndroidAudioInputDoRead=%d, + +AndroidAudioInputDoRead); find above case --~--~-~--~~~---~--~~ unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting -~--~~~~--~~--~--~---