WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

RE: Re: Re: [Xen-devel] how to use printk() in xen?

To: <fhf25@xxxxxxx>, "Hwandori" <hwandori@xxxxxxxxx>
Subject: RE: Re: Re: [Xen-devel] how to use printk() in xen?
From: "Li, Xin B" <xin.b.li@xxxxxxxxx>
Date: Sun, 27 Apr 2008 10:26:58 +0800
Cc: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Sat, 26 Apr 2008 19:27:28 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <200804270149420465102@xxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <200804262059551875028@xxxxxxx>, <4c58ffef0804260605r39e15016tab79c5b01bd6ab79@xxxxxxxxxxxxxx>, <200804262216063592559@xxxxxxx>, <4c58ffef0804261038x120cf551qc168ab86fa31f8f8@xxxxxxxxxxxxxx> <200804270149420465102@xxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: Acinxb/D707tenWtRPC+zbnt6g7e0AASGNmA
Thread-topic: Re: Re: [Xen-devel] how to use printk() in xen?
seems your question is a C language problem :-)
-Xin


From: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx [mailto:xen-devel-bounces@xxxxxxxxxxxxxxxxxxx] 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@xxxxxxx
抄送:
主题: 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@xxxxxxx>:
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@xxxxxxx
抄送:
主题: 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@xxxxxxx>:
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@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>