I have started to write my first kernel-module and used the KERN_INFO
macro.
The line itself looks like that
printk(KERN_INFO "Hello world");
So I was confused, why there is no comma after KERN_INFO
and used the preprocessor to print the expanded version.
printk("\001" "6" "Hello world 2\n");
Now I was confused even more. I wrote a little program test this with printf
.
#include <stdio.h>
int main (void)
{
printf("Hello" "World");
return 0;
}
Which works just fine, but why?
I do not think those are 2 arguments because arguments are comma-separated.
I know C ignores all whitspaces but I have never
heard of it concatenating 2 strings without a function.
Is there an official documentation showing that this is possible or how it works?