[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: kernel mode printing a file
mju s wrote:
> hi,
> i am some problem while printing the contents of the file with tab
> spaces in the file from the kernel mode. the tab spaces are converted
> to junk characteres if i print them inside the kernel mode with the
> printk.
>
> my code snippet is :
>
> .
> .
> .
>
> fd=openptr("test.txt",O_RDONLY,0666);
> len=readptr(fd,buff,sizeof(buff);
this is not possible.
>
> printk("%s",buff);
> .
> .
> .
>
> the test.txt file contain only a line of string
> "this is test"
>
> the space in between the string is tab spaces.
>
> while i print the output it shows junk.
>
> so any help is appreciated,
> thks,
> mju
>
> _________________________________________________________________
> Big guns are booming! Bollywood is a war zone!
> http://server1.msn.co.in/features/decmovies03/index.asp Catch all the
> filmi action this December.
>
> --
> Kernelnewbies: Help each other learn about the Linux kernel.
> Archive: http://mail.nl.linux.org/kernelnewbies/
> FAQ: http://kernelnewbies.org/faq/
>
>
>
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive: http://mail.nl.linux.org/kernelnewbies/
FAQ: http://kernelnewbies.org/faq/