thanks for a reply.
in my opinion, the "printk" is
not what i want. the reason is:
firstly, in 'drivers/char/console.c' there is a definition of printk, but
the file includes a header file - 'xen/lib.h'.
in 'xen/lib.h' there is a declaration of printk in form of "extern void
printk()", so i doubt that the two functions is not the same
'xen/include/xen/console.h' there is not a declaration of printk, but why the
decalaration of printk() is placed into the "xen/lib.h" file,
meanwhile it is added a perfix 'extern' ?
so, can we talk about that? give me you advices
发送时间： 2008-04-26 21:05:46
主题： Re: [Xen-devel] how to use printk()
I think 'printk' you meant is
implemented in 'drivers/char/console.c'.
Is my answer what you
2008/4/26 Haifeng Fang <fhf25@xxxxxxx
i want to add a function in xen. in the function i need to call the
"printk" to display the values of some variables.
i found the definition of printk() in file
extern void printk(const char *format, ...)
__attribute__ ((format (printf, 1, 2)));
who can tell me the location of printk()?
thanks in advance.