Hi You can use dmesg to see the printk logs. Just type "dmesg" or you can use adb like this: adb shell 'cat /proc/kmsg'
BR Raso 2010/6/19 xlshe <dianyuangua...@gmail.com> > Hi, Gary > > I am starting to do something in the kernel. But I don't know how to > read the information from the printk() in android phone OS. Because I > cann't find /var/log/syslog in the file system. Can you can me some > sugesstion about how to read the log from printk(). Thank you very > much. > > Longsheng > > On Jun 16, 10:21 am, Gary <gary01.y...@gmail.com> wrote: > > Hi, all > > > > Now my device needs 2 minutes to boot up. > > But I found that the booting time will be reduced to 1 minute after I > > add just a printk(..) invoking as shown below. > > Even though the booting time has been reduced by adding one line of > > routine,but I have not found the real reason why the device needs 2 > > minutes to boot up. > > > > Do you have any ideas or suggestions on my question? > > > > /linux2.6.29/init/main.c > > > > static void __init do_initcalls(void) > > { > > initcall_t *call; > > for (call = __early_initcall_end; call < __initcall_end; call++){ > > do_one_initcall(*call); > > printk("yangwd, do it,0x%x\r\n",call); // just add this line of > > routine > > } > > /* Make sure there is no pending stuff from the initcall sequence > */ > > flush_scheduled_work(); > > > > } > > > > Thanks > > > > Gary > > -- > unsubscribe: > android-kernel+unsubscr...@googlegroups.com<android-kernel%2bunsubscr...@googlegroups.com> > website: http://groups.google.com/group/android-kernel > -- unsubscribe: android-kernel+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-kernel