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

[Xen-changelog] [xen-unstable] libxc: allow osdep backends to log via the xc infrastructure.



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

Signed-off-by: Ian Campbell <ian.campbell@xxxxxxxxxx>
Signed-off-by: Ian Jackson <ian.jackson.citrix.com>
---
 tools/libxc/xc_private.c   |    8 ++++++++
 tools/libxc/xenctrlosdep.h |    3 +++
 2 files changed, 11 insertions(+)

diff -r a04cd975b1f4 -r 1f5e355c1f88 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
@@ -271,6 +271,14 @@ void xc_report_error(xc_interface *xch, 
     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);
+}
+
 void xc_report_progress_start(xc_interface *xch, const char *doing,
                               unsigned long total) {
     xch->currently_progress_reporting = doing;
diff -r a04cd975b1f4 -r 1f5e355c1f88 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-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

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