[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH] xen-access: Do not use ERROR out of xc handle scope
In places where xc handle is not in scope, use standard printf to display errors. Signed-off-by: Aravindh Puthiyaparambil <aravindp@xxxxxxxxx> Cc: Tim Deegan <tim@xxxxxxx> --- tools/tests/xen-access/xen-access.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/tests/xen-access/xen-access.c b/tools/tests/xen-access/xen-access.c index b00c05a..640250e 100644 --- a/tools/tests/xen-access/xen-access.c +++ b/tools/tests/xen-access/xen-access.c @@ -215,7 +215,7 @@ int xenaccess_teardown(xc_interface *xch, xenaccess_t *xenaccess) rc = xc_interface_close(xenaccess->xc_handle); if ( rc != 0 ) { - ERROR("Error closing connection to xen"); + DPRINTF("Error closing connection to xen\n"); } xenaccess->xc_handle = NULL; @@ -523,7 +523,7 @@ int main(int argc, char *argv[]) xenaccess = xenaccess_init(&xch, domain_id); if ( xenaccess == NULL ) { - ERROR("Error initialising xenaccess"); + DPRINTF("Error initialising xenaccess\n"); return 1; } @@ -693,7 +693,7 @@ exit: /* Tear down domain xenaccess */ rc1 = xenaccess_teardown(xch, xenaccess); if ( rc1 != 0 ) - ERROR("Error tearing down xenaccess"); + DPRINTF("Error tearing down xenaccess\n"); if ( rc == 0 ) rc = rc1; _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |