WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-unstable] libxc: allow osdep backends to log via th

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] libxc: allow osdep backends to log via the xc infrastructure.
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Fri, 24 Dec 2010 15:46:08 -0800
Delivery-date: Fri, 24 Dec 2010 15:49:23 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] libxc: allow osdep backends to log via the xc infrastructure., Xen patchbot-unstable <=