|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] [xen-unstable] tools/tests/xen-access: minor bug fixes
# HG changeset patch
# User Aravindh Puthiyaparambil <aravindh@xxxxxxxxxxxx>
# Date 1304931399 -3600
# Node ID 1649275965f07a1bbb4e357dff740b0962be678e
# Parent e787d4f2e5acdba48728a9390710de800315a540
tools/tests/xen-access: minor bug fixes
Fix a couple of minor bugs in xen-access test program:
* Fix -m option handling.
* Fix a segfault that was occurring during program exit.
Signed-off-by: Aravindh Puthiyaparambil <aravindh@xxxxxxxxxxxx>
---
diff -r e787d4f2e5ac -r 1649275965f0 tools/tests/xen-access/xen-access.c
--- a/tools/tests/xen-access/xen-access.c Mon May 09 09:54:46 2011 +0100
+++ b/tools/tests/xen-access/xen-access.c Mon May 09 09:56:39 2011 +0100
@@ -482,9 +482,6 @@
if ( argc == 3 && argv[0][0] == '-' )
{
- argv++;
- argc--;
-
if ( !strcmp(argv[0], "-m") )
required = 1;
else
@@ -492,6 +489,8 @@
usage(progname);
return -1;
}
+ argv++;
+ argc--;
}
if ( argc != 2 )
@@ -651,8 +650,6 @@
if ( rc == 0 )
rc = rc1;
- xc_interface_close(xch);
-
DPRINTF("xenaccess exit code %d\n", rc);
return rc;
}
_______________________________________________
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] tools/tests/xen-access: minor bug fixes,
Xen patchbot-unstable <=
|
|
|
|
|