Re: [android-kernel] Re: printk in Android

2010-01-07 Thread Greg KH
On Thu, Jan 7, 2010 at 7:40 PM, perumal316 wrote: > Actually I want to show to user, but if in the phone if there any way > where these messages can be shown to them without them have to go to > terminal and dmesg? On the android platform, no, there isn't, unless you write an application that mon

Re: [android-kernel] Re: printk in Android

2010-01-07 Thread Greg KH
On Thu, Jan 7, 2010 at 7:25 PM, perumal316 wrote: > > Is it possible to write to file in kernel programming? Yes, but again, you do not want to do that. Go read the kernelnewbies.org site for why. http://kernelnewbies.org/FAQ/WhyWritingFilesFromKernelIsBad I suggest reading up on that site f

[android-kernel] Re: printk in Android

2010-01-07 Thread perumal316
Actually I want to show to user, but if in the phone if there any way where these messages can be shown to them without them have to go to terminal and dmesg? On Jan 8, 11:33 am, Dianne Hackborn wrote: > Er...  I suspect you want to how them to the -developer-, not the user, in > which case they

Re: [android-kernel] Re: printk in Android

2010-01-07 Thread Greg KH
On Thu, Jan 7, 2010 at 6:23 PM, perumal316 wrote: > > I am writing a kernel module which prints out a message each time a > system call is being made. I want to show these messages to user. No, you really don't want to do ever do that. Remember, the user made the system call in the first place,

Re: [android-kernel] Re: printk in Android

2010-01-07 Thread Dianne Hackborn
Er... I suspect you want to how them to the -developer-, not the user, in which case they should be perfectly fine using the shell and dmesg to see the, shouldn't they? On Thu, Jan 7, 2010 at 6:23 PM, perumal316 wrote: > > I am writing a kernel module which prints out a message each time a > sy

[android-kernel] Re: printk in Android

2010-01-07 Thread perumal316
Is it possible to write to file in kernel programming? On Jan 8, 10:23 am, perumal316 wrote: > I am writing a kernel module which prints out a message each time a > system call is being made. I want to show these messages to user. > > On Jan 7, 10:56 pm, Greg KH wrote: > > > On Wed, Jan 6, 2010

[android-kernel] Re: printk in Android

2010-01-07 Thread perumal316
I am writing a kernel module which prints out a message each time a system call is being made. I want to show these messages to user. On Jan 7, 10:56 pm, Greg KH wrote: > On Wed, Jan 6, 2010 at 9:13 PM, perumal316 wrote: > > Hi All, > > > Thanks for the input. But I am currently writing a modul

Re: [android-kernel] Re: printk in Android

2010-01-07 Thread Greg KH
On Wed, Jan 6, 2010 at 9:13 PM, perumal316 wrote: > Hi All, > > Thanks for the input. But I am currently writing a module for Android. > In module programming there is only printk but is it possible to show > the kernel messages to the users? Meaning the user who will be using > the Android phone

[android-kernel] Re: printk in Android

2010-01-06 Thread perumal316
Hi All, Thanks for the input. But I am currently writing a module for Android. In module programming there is only printk but is it possible to show the kernel messages to the users? Meaning the user who will be using the Android phone with the module will be shown the kernel messages. Regards, P

[android-kernel] Re: printk in Android

2010-01-05 Thread dmitriy moskvitin
"cat /proc/kmsg", if you have root-privileges On Jan 6, 6:37 am, hedwin wrote: > Perumal > > Within the android emulation check if you have a "dev tools" package. That > has a "terminal emulation" inside. Starting this will > open a shell. This way you should be able to a dmesg within the emulati