aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libxc/xc_private.h
diff options
context:
space:
mode:
authorIan Campbell <ian.campbell@citrix.com>2010-12-02 12:49:00 +0000
committerIan Campbell <ian.campbell@citrix.com>2010-12-02 12:49:00 +0000
commit0bba6abe9863fabeae156b2361e531dac5afd93d (patch)
tree97d7a8318713393ab492a4af94c208272f8ad866 /tools/libxc/xc_private.h
parent77fcd869a7beb55857198b8d6cbffe63b33cac20 (diff)
downloadxen-0bba6abe9863fabeae156b2361e531dac5afd93d.tar.gz
xen-0bba6abe9863fabeae156b2361e531dac5afd93d.tar.bz2
xen-0bba6abe9863fabeae156b2361e531dac5afd93d.zip
libxc: rename safe_strerror to xc_strerror and pass in an XC handle for future use.
Make the function public since I have future patches which depend on this. Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com> committer: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Diffstat (limited to 'tools/libxc/xc_private.h')
-rw-r--r--tools/libxc/xc_private.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/libxc/xc_private.h b/tools/libxc/xc_private.h
index e07a55b75d..f6c45f2e93 100644
--- a/tools/libxc/xc_private.h
+++ b/tools/libxc/xc_private.h
@@ -74,7 +74,6 @@ struct xc_interface {
const char *currently_progress_reporting;
};
-char *safe_strerror(int errcode);
void xc_report_error(xc_interface *xch, int code, const char *fmt, ...);
void xc_reportv(xc_interface *xch, xentoollog_logger *lg, xentoollog_level,
int code, const char *fmt, va_list args)
@@ -96,7 +95,7 @@ void xc_report_progress_step(xc_interface *xch,
#define ERROR(_m, _a...) xc_report_error(xch,XC_INTERNAL_ERROR,_m , ## _a )
#define PERROR(_m, _a...) xc_report_error(xch,XC_INTERNAL_ERROR,_m \
- " (%d = %s)", ## _a , errno, safe_strerror(errno))
+ " (%d = %s)", ## _a , errno, xc_strerror(xch, errno))
/*
* HYPERCALL ARGUMENT BUFFERS