Menu

#3 does not compile with gcc 3.3

open
portability (2)
4
2003-12-12
2003-12-12
No

mmap.c:206:33: pasting "KERN_DEBUG" and ""area = %p ""
does not give a valid preprocessing token
mmap.c:208:27: pasting "KERN_DEBUG" and ""\n"" does not
give a valid preprocessing token

Known problem when using ##, but I do not know how to
solve it in this particular case.

kernel_compat.h:#define PRINT(args...)
printk(KERN_DEBUG ## args)

Should it be:

kernel_compat.h:#define PRINT(args...)
printk(KERN_DEBUG args)
?

Discussion


Log in to post a comment.