xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Ian Campbell <Ian.Campbell@citrix.com>
To: "李春奇 <Chunqi Li>" <yzt356@gmail.com>
Cc: "xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>
Subject: Re: Questions about LOG system
Date: Wed, 15 Feb 2012 08:32:38 +0000	[thread overview]
Message-ID: <1329294758.26412.13.camel@dagon.hellion.org.uk> (raw)
In-Reply-To: <CABpY8MJ0w95QXSh=Yx29j28MqdnUVhNwBmkVN-w74sconr7J1A@mail.gmail.com>

Please do not top post. http://wiki.xen.org/wiki/AskingXenDevelQuestions

On Wed, 2012-02-15 at 06:40 +0000, 李春奇 wrote:
> Well, I have found the wrong code.
> The macro DPRINTF  points to
> #define DPRINTF(_f, _a...) xc_report(xch, xch->error_handler,
> XTL_DETAIL, 0, _f, ## -a)
> So is this Xen's private log system ? Where messages write via
> xc_report and xc_report_error function?

You should have been able to find these functions by using "grep" or
other similar tools (hint: look under tools/libxc).

Had you done so you would have found that they use the xtl logger
infrastructure. xch->error_handler is the logger passed to
xc_interface_open(), the behaviour of which is documented in the header.

Ian.




_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

  reply	other threads:[~2012-02-15  8:32 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-14  7:03 Questions about LOG system 李春奇 <Chunqi Li>
2012-02-14  9:25 ` Ian Campbell
2012-02-15  6:40   ` 李春奇 <Chunqi Li>
2012-02-15  8:32     ` Ian Campbell [this message]
2012-02-15  9:49       ` 李春奇 <Chunqi Li>
2012-02-15 10:07         ` Ian Campbell

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1329294758.26412.13.camel@dagon.hellion.org.uk \
    --to=ian.campbell@citrix.com \
    --cc=xen-devel@lists.xensource.com \
    --cc=yzt356@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).