On Mon, Apr 21, 2003 at 02:37:12PM -0500, Curran, Dominic wrote: > mymod.c:128: parse error before `)' > > > Line 128 is: > > MSG("ENTER: mymod_open()\n"); > > However, if I change the line to take a parameter: > > MSG("ENTER: mymod_open(%i)\n", num); > > then it compiles without error. > hi, i tried to compile ur program in user space by converting the kernel jargon to user space stuff. #define KERN_INFO "<6>" #define jiffies 8345734 #define printk printf #define MSG(string, args...) printk(KERN_INFO "MYMOD[%lu]: "string, jiffies, ##args) void main() { int num; MSG("ENTER: mymod_open()\n"); MSG("ENTER: mymod_open(%i)\n", num); } this compiles fine for me..! may be the parse error occured somewhere else, check it again. john
Attachment:
pgp00374.pgp
Description: PGP signature