On Wed, Mar 16, 2005 at 11:08:15PM -0500, Jim Bauer wrote: > On Wednesday 16 March 2005 17:08, A wrote: > > Hi, > > > > I am trying to print something from a kernel module > > > printk(KERN_EMERG, "AAA: about to call func - > > my_init_module \n"); > > > Can someone please tell me what I am doing wrong, or > > not doing? > > Get rid of the "," after the KERN_EMERG. Good spot! If the original poster compiled with "-Wall" (in linux 2.6 kbuild takes care of that), the compiler would have warned with: blah.c:42: warning: too many arguments for format Compiler warnings are not something you can safely ignore, certainly not in kernel programming. Erik -- Erik Mouw J.A.K.Mouw@xxxxxxxxxxxxxx mouw@xxxxxxxxxxxx
Attachment:
signature.asc
Description: Digital signature