* how to use printk() in xen?
@ 2008-04-26 12:59 Haifeng Fang
2008-04-26 13:07 ` Wei, Gang
[not found] ` <4c58ffef0804260605r39e15016tab79c5b01bd6ab79@mail.gmail.com>
0 siblings, 2 replies; 5+ messages in thread
From: Haifeng Fang @ 2008-04-26 12:59 UTC (permalink / raw)
To: xen-devel
[-- Attachment #1.1: Type: text/plain, Size: 395 bytes --]
hi, all:
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 "xen-3.1.0-src\xen\include\xen\lib.h ":
extern void printk(const char *format, ...)
__attribute__ ((format (printf, 1, 2)));
who can tell me the location of printk()?
thanks in advance.
2008-04-26
Haifeng Fang
[-- Attachment #1.2: Type: text/html, Size: 1335 bytes --]
[-- Attachment #2: Type: text/plain, Size: 138 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
^ permalink raw reply [flat|nested] 5+ messages in thread* RE: how to use printk() in xen? 2008-04-26 12:59 how to use printk() in xen? Haifeng Fang @ 2008-04-26 13:07 ` Wei, Gang [not found] ` <4c58ffef0804260605r39e15016tab79c5b01bd6ab79@mail.gmail.com> 1 sibling, 0 replies; 5+ messages in thread From: Wei, Gang @ 2008-04-26 13:07 UTC (permalink / raw) To: fhf25, xen-devel [-- Attachment #1.1: Type: text/plain, Size: 755 bytes --] xen/drivers/char/console.c Jimmy ________________________________ From: xen-devel-bounces@lists.xensource.com [mailto:xen-devel-bounces@lists.xensource.com] On Behalf Of Haifeng Fang Sent: Saturday, April 26, 2008 9:00 PM To: xen-devel Subject: [Xen-devel] how to use printk() in xen? hi, all: 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 "xen-3.1.0-src\xen\include\xen\lib.h ": extern void printk(const char *format, ...) __attribute__ ((format (printf, 1, 2))); who can tell me the location of printk()? thanks in advance. 2008-04-26 ________________________________ Haifeng Fang [-- Attachment #1.2: Type: text/html, Size: 1980 bytes --] [-- Attachment #2: Type: text/plain, Size: 138 bytes --] _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel ^ permalink raw reply [flat|nested] 5+ messages in thread
[parent not found: <4c58ffef0804260605r39e15016tab79c5b01bd6ab79@mail.gmail.com>]
[parent not found: <200804262216063592559@126.com>]
* Fw: Re: Re: how to use printk() in xen? [not found] ` <200804262216063592559@126.com> @ 2008-04-26 14:16 ` Haifeng Fang [not found] ` <4c58ffef0804261038x120cf551qc168ab86fa31f8f8@mail.gmail.com> 1 sibling, 0 replies; 5+ messages in thread From: Haifeng Fang @ 2008-04-26 14:16 UTC (permalink / raw) To: xen-devel [-- Attachment #1.1: Type: text/plain, Size: 1688 bytes --] 2008-04-26 Haifeng Fang 发件人: Haifeng Fang 发送时间: 2008-04-26 22:16:06 收件人: Hwandori 抄送: 主题: Re: Re: [Xen-devel] how to use printk() in xen? 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 one. secondly, in '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 please. 2008-04-26 Haifeng Fang 发件人: Hwandori 发送时间: 2008-04-26 21:05:46 收件人: fhf25@126.com 抄送: 主题: Re: [Xen-devel] how to use printk() in xen? Hi, I think 'printk' you meant is implemented in 'drivers/char/console.c'. Is my answer what you want? 2008/4/26 Haifeng Fang <fhf25@126.com>: hi, all: 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 "xen-3.1.0-src\xen\include\xen\lib.h ": extern void printk(const char *format, ...) __attribute__ ((format (printf, 1, 2))); who can tell me the location of printk()? thanks in advance. 2008-04-26 Haifeng Fang _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel [-- Attachment #1.2: Type: text/html, Size: 7453 bytes --] [-- Attachment #2: Type: text/plain, Size: 138 bytes --] _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel ^ permalink raw reply [flat|nested] 5+ messages in thread
[parent not found: <4c58ffef0804261038x120cf551qc168ab86fa31f8f8@mail.gmail.com>]
* Re: Re: Re: how to use printk() in xen? [not found] ` <4c58ffef0804261038x120cf551qc168ab86fa31f8f8@mail.gmail.com> @ 2008-04-26 17:49 ` Haifeng Fang 2008-04-27 2:26 ` Li, Xin B 0 siblings, 1 reply; 5+ messages in thread From: Haifeng Fang @ 2008-04-26 17:49 UTC (permalink / raw) To: Hwandori; +Cc: xen-devel [-- Attachment #1.1: Type: text/plain, Size: 1998 bytes --] thanks for you. now, by studying the printk.c of linux, i confirm that the two functions is the same. 2008-04-27 Haifeng Fang 发件人: Hwandori 发送时间: 2008-04-27 01:38:35 收件人: fhf25@126.com 抄送: 主题: Re: Re: [Xen-devel] how to use printk() in xen? I'm sorry I'don't know exactly.. However, It seems that the declaration(include/xen/lib.h) and the definition(driver/char/console.c) is the same. 2008/4/26 Haifeng Fang <fhf25@126.com>: 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 one. secondly, in '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 please. 2008-04-26 Haifeng Fang 发件人: Hwandori 发送时间: 2008-04-26 21:05:46 收件人: fhf25@126.com 抄送: 主题: Re: [Xen-devel] how to use printk() in xen? Hi, I think 'printk' you meant is implemented in 'drivers/char/console.c'. Is my answer what you want? 2008/4/26 Haifeng Fang <fhf25@126.com>: hi, all: 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 "xen-3.1.0-src\xen\include\xen\lib.h ": extern void printk(const char *format, ...) __attribute__ ((format (printf, 1, 2))); who can tell me the location of printk()? thanks in advance. 2008-04-26 Haifeng Fang _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel [-- Attachment #1.2: Type: text/html, Size: 7341 bytes --] [-- Attachment #2: Type: text/plain, Size: 138 bytes --] _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel ^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: Re: Re: how to use printk() in xen? 2008-04-26 17:49 ` Haifeng Fang @ 2008-04-27 2:26 ` Li, Xin B 0 siblings, 0 replies; 5+ messages in thread From: Li, Xin B @ 2008-04-27 2:26 UTC (permalink / raw) To: fhf25, Hwandori; +Cc: xen-devel [-- Attachment #1.1: Type: text/plain, Size: 2669 bytes --] seems your question is a C language problem :-) -Xin ________________________________ From: xen-devel-bounces@lists.xensource.com [mailto:xen-devel-bounces@lists.xensource.com] On Behalf Of Haifeng Fang Sent: 2008年4月27日 1:50 To: Hwandori Cc: xen-devel Subject: Re: Re: Re: [Xen-devel] how to use printk() in xen? thanks for you. now, by studying the printk.c of linux, i confirm that the two functions is the same. 2008-04-27 ________________________________ Haifeng Fang ________________________________ 发件人: Hwandori 发送时间: 2008-04-27 01:38:35 收件人: fhf25@126.com 抄送: 主题: Re: Re: [Xen-devel] how to use printk() in xen? I'm sorry I'don't know exactly.. However, It seems that the declaration(include/xen/lib.h) and the definition(driver/char/console.c) is the same. 2008/4/26 Haifeng Fang <fhf25@126.com>: 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 one. secondly, in '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 please. 2008-04-26 ________________________________ Haifeng Fang ________________________________ 发件人: Hwandori 发送时间: 2008-04-26 21:05:46 收件人: fhf25@126.com 抄送: 主题: Re: [Xen-devel] how to use printk() in xen? Hi, I think 'printk' you meant is implemented in 'drivers/char/console.c'. Is my answer what you want? 2008/4/26 Haifeng Fang <fhf25@126.com>: hi, all: 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 "xen-3.1.0-src\xen\include\xen\lib.h ": extern void printk(const char *format, ...) __attribute__ ((format (printf, 1, 2))); who can tell me the location of printk()? thanks in advance. 2008-04-26 ________________________________ Haifeng Fang _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel [-- Attachment #1.2: Type: text/html, Size: 8116 bytes --] [-- Attachment #2: Type: text/plain, Size: 138 bytes --] _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2008-04-27 2:26 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-26 12:59 how to use printk() in xen? Haifeng Fang
2008-04-26 13:07 ` Wei, Gang
[not found] ` <4c58ffef0804260605r39e15016tab79c5b01bd6ab79@mail.gmail.com>
[not found] ` <200804262216063592559@126.com>
2008-04-26 14:16 ` Fw: Re: " Haifeng Fang
[not found] ` <4c58ffef0804261038x120cf551qc168ab86fa31f8f8@mail.gmail.com>
2008-04-26 17:49 ` Haifeng Fang
2008-04-27 2:26 ` Li, Xin B
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.