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 <[email protected]> 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 <[email protected]> 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 <[email protected]> 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: [email protected] website: http://groups.google.com/group/android-porting -~----------~----~----~----~------~----~------~--~---
