On Tue, May 20, 2008 at 11:36 AM, Rene Herman <[EMAIL PROTECTED]> wrote:
> On 20-05-08 05:47, Payphone LIOU wrote:
>
>> in a kernel modules, i used "snprintf()" to ouput some strings to the
>> terminal.
>
> snprintf() doesn't output to anything; it writes to the buffer it's given as
> its first parameter. To actually output something you need printk() and
> friends.
Also, if this is some sort of proc file (or other virtual filesystem)
you will need to mount it and open the file, e.g. cat
/proc/your-proc-filename.
It will also be easier to help if you provide a bit more context the
next time you have a question. Good luck.
Vegard
--
"The animistic metaphor of the bug that maliciously sneaked in while
the programmer was not looking is intellectually dishonest as it
disguises that the error is the programmer's own creation."
-- E. W. Dijkstra, EWD1036
--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to [EMAIL PROTECTED]
Please read the FAQ at http://kernelnewbies.org/FAQ