Alain Rolle wrote:
>
> Hi,
>
> I wonder if anyone could be so kind to help me out with this problem :
> In order to debug my kernel modules,I use printk messages in the source
> code (as is common practice I believe). However the compiler identifies
> these statements as " statements without effect". I have checked the
> archives about "debugging" , but I couldn't make up exactly what to
> do.(and where to do it ). Any help would be appreciated , because
> debugging my code is quite impossible without these messages.
>
> Regards,
>
> Alain
>
Without more information, its hard to say, but one point is to make sure
you compile with
-D__KERNEL__ and -DMODULE
You also need -O2 to pull in in-line functions.
If you still have problems, please post a simple 'hello world' with
details of your system, and your compile flags.
Stuart.
--- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
----
For more information on Real-Time Linux see:
http://www.rtlinux.org/~rtlinux/