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

[Xen-devel] [PATCH 21 of 25] libxc: allow osdep backends to log via the xc infrastructure



# HG changeset patch
# User Ian Campbell <ian.campbell@xxxxxxxxxx>
# Date 1291369007 0
# Node ID ba7854a6f15b606a5285a786597bbdb452c9d360
# Parent  379a7ce920c996d3805f88e8ba719e9a543fbc35
libxc: allow osdep backends to log via the xc infrastructure.

Signed-off-by: Ian Campbell <ian.campbell@xxxxxxxxxx>

diff -r 379a7ce920c9 -r ba7854a6f15b tools/libxc/xc_private.c
--- a/tools/libxc/xc_private.c  Fri Dec 03 09:36:47 2010 +0000
+++ b/tools/libxc/xc_private.c  Fri Dec 03 09:36:47 2010 +0000
@@ -268,6 +268,14 @@ void xc_report_error(xc_interface *xch, 
     va_list args;
     va_start(args, fmt);
     xc_reportv(xch, xch->error_handler, XTL_ERROR, code, fmt, args);
+    va_end(args);
+}
+
+void xc_osdep_log(xc_interface *xch, xentoollog_level level, int code, const 
char *fmt, ...)
+{
+    va_list args;
+    va_start(args, fmt);
+    xc_reportv(xch, xch->error_handler, level, code, fmt, args);
     va_end(args);
 }
 
diff -r 379a7ce920c9 -r ba7854a6f15b tools/libxc/xenctrlosdep.h
--- a/tools/libxc/xenctrlosdep.h        Fri Dec 03 09:36:47 2010 +0000
+++ b/tools/libxc/xenctrlosdep.h        Fri Dec 03 09:36:47 2010 +0000
@@ -136,6 +136,9 @@ void *xc_map_foreign_bulk_compat(xc_inte
                                  uint32_t dom, int prot,
                                  const xen_pfn_t *arr, int *err, unsigned int 
num);
 
+/* Report errors through xc_interface */
+void xc_osdep_log(xc_interface *xch, xentoollog_level level, int code, const 
char *fmt, ...);
+
 #endif
 
 /*

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


 


Rackspace

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