[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH 2 of 5 RFC] blktap3: Logging for the xenio daemon and libxenio



This patch introduces xenio and libxenio logging functionality. At the moment
logging is passed to vsyslog() via a wrapper.

diff -r d426fc267197 -r 6918a76c96d8 tools/blktap3/xenio/log.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/tools/blktap3/xenio/log.c Wed Nov 28 14:13:29 2012 +0000
@@ -0,0 +1,15 @@
+#include "compiler.h"
+#include <stdarg.h>
+#include <syslog.h>
+
+void (*xenio_vlog) (int prio, const char *fmt, va_list ap) = vsyslog;
+
+__printf(2, 3) void
+xenio_log(int prio, const char *fmt, ...)
+{
+    va_list ap;
+    va_start(ap, fmt);
+    xenio_vlog(prio, fmt, ap);
+    va_end(ap);
+}
+

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.