xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* Questions about LOG system
@ 2012-02-14  7:03 李春奇 <Chunqi Li>
  2012-02-14  9:25 ` Ian Campbell
  0 siblings, 1 reply; 6+ messages in thread
From: 李春奇 <Chunqi Li> @ 2012-02-14  7:03 UTC (permalink / raw)
  To: xen-devel


[-- Attachment #1.1: Type: text/plain, Size: 814 bytes --]

Hi all,
When I'm reading code of Xen and I can't find the exact LOG file written by
each log-writing code, so I have some trouble with debugging.

I have found 8 type of LOG managed by xen-4.0 or later,
#define LOG_EMERG 0
#define LOG_ALERT 1
#define LOG_CRIT 2
#define LOG_ERR 3
#define LOG_WARNING 4
#define LOG_NOTICE 5
#define LOG_INFO 6
#define LOG_DEBUG

and there are three frequently used macro for logging:
#define DPRINTF(_f, _a...) syslog(LOG_INFO, _f, ##_a)
#define EPRINTF(_f, _a...) syslog(LOG_ERR, "tap-err:%s: " _f, __func__,
##_a)
#define  PERROR(_f, _a...) syslog(LOG_ERR, "tap-err:%s: " _f ": %s",
__func__, ##_a, \
  strerror(errno)

Who can tell me which file match these log type above? Thank you.

-- 
Chunqi Li
Department of Computer Science
School of EECS
Peking University
Beijing, China

[-- Attachment #1.2: Type: text/html, Size: 1185 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] 6+ messages in thread

end of thread, other threads:[~2012-02-15 10:07 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2012-02-15  9:49       ` 李春奇 <Chunqi Li>
2012-02-15 10:07         ` Ian Campbell

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).