提交 53f5386a 编写于 作者: D Daniel Veillard

Switch daemon to new logging APIs

* qemud/qemud.c qemud/qemud.h: replace the daemon old logging
  infrastructure with the new one and parse configuration options
daniel
上级 0d575be4
Mon Dec 22 13:51:48 CET 2008 Daniel Veillard <veillard@redhat.com>
* qemud/qemud.c qemud/qemud.h: replace the daemon old logging
infrastructure with the new one and parse configuration options
Mon Dec 22 11:51:29 CET 2008 Daniel Veillard <veillard@redhat.com>
* src/uml_conf.c: another logging conversion
......
此差异已折叠。
......@@ -45,6 +45,7 @@
#include <rpc/types.h>
#include <rpc/xdr.h>
#include "remote_protocol.h"
#include "logging.h"
#ifdef __GNUC__
#ifdef HAVE_ANSIDECL_H
......@@ -61,15 +62,7 @@
#define ATTRIBUTE_FORMAT(...)
#endif
typedef enum {
QEMUD_ERR,
QEMUD_WARN,
QEMUD_INFO,
#ifdef ENABLE_DEBUG
QEMUD_DEBUG
#endif
} qemudLogPriority;
#define qemudDebug DEBUG
enum qemud_mode {
QEMUD_MODE_RX_HEADER, /* Receiving the fixed length RPC header data */
......@@ -183,11 +176,6 @@ struct qemud_server {
void qemudLog(int priority, const char *fmt, ...)
ATTRIBUTE_FORMAT(printf,2,3);
#ifdef ENABLE_DEBUG
#define qemudDebug(...) qemudLog(QEMUD_DEBUG, __VA_ARGS__)
#else
#define qemudDebug(fmt, ...) do {} while(0)
#endif
int qemudSetCloseExec(int fd);
int qemudSetNonBlock(int fd);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册