* [PATCH] tests: xen-access: minor bug fixes
@ 2011-05-05 19:39 Aravindh Puthiyaparambil
2011-05-06 7:58 ` Ian Campbell
0 siblings, 1 reply; 3+ messages in thread
From: Aravindh Puthiyaparambil @ 2011-05-05 19:39 UTC (permalink / raw)
To: xen-devel
[-- Attachment #1.1: Type: text/plain, Size: 243 bytes --]
Can this patch be applied to both xen-unstable and xen-4.1-testing so that
it makes it into xen-4.1.1?
Thanks,
Aravindh
Fix a couple of minor bugs in xen-access test program.
Signed-off-by: Aravindh Puthiyaparambil <aravindh@virtuata.com>
[-- Attachment #1.2: Type: text/html, Size: 415 bytes --]
[-- Attachment #2: xen-access-bugfixes.patch --]
[-- Type: text/x-patch, Size: 700 bytes --]
diff -r 6a2089f00dc7 tools/tests/xen-access/xen-access.c
--- a/tools/tests/xen-access/xen-access.c Fri Mar 25 10:22:10 2011 +0000
+++ b/tools/tests/xen-access/xen-access.c Thu May 05 12:35:38 2011 -0700
@@ -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;
}
[-- Attachment #3: Type: text/plain, Size: 138 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] tests: xen-access: minor bug fixes
2011-05-05 19:39 [PATCH] tests: xen-access: minor bug fixes Aravindh Puthiyaparambil
@ 2011-05-06 7:58 ` Ian Campbell
2011-05-06 8:09 ` Aravindh Puthiyaparambil
0 siblings, 1 reply; 3+ messages in thread
From: Ian Campbell @ 2011-05-06 7:58 UTC (permalink / raw)
To: Aravindh Puthiyaparambil; +Cc: xen-devel@lists.xensource.com
On Thu, 2011-05-05 at 20:39 +0100, Aravindh Puthiyaparambil wrote:
> Can this patch be applied to both xen-unstable and xen-4.1-testing so
> that it makes it into xen-4.1.1?
[...]
> Fix a couple of minor bugs in xen-access test program.
It's always useful to describe _what_ bugs in a changelog message.
> Signed-off-by: Aravindh Puthiyaparambil <aravindh@virtuata.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] tests: xen-access: minor bug fixes
2011-05-06 7:58 ` Ian Campbell
@ 2011-05-06 8:09 ` Aravindh Puthiyaparambil
0 siblings, 0 replies; 3+ messages in thread
From: Aravindh Puthiyaparambil @ 2011-05-06 8:09 UTC (permalink / raw)
To: Ian Campbell; +Cc: xen-devel@lists.xensource.com
[-- Attachment #1.1: Type: text/plain, Size: 680 bytes --]
On Fri, May 6, 2011 at 12:58 AM, Ian Campbell <Ian.Campbell@citrix.com>wrote:
> On Thu, 2011-05-05 at 20:39 +0100, Aravindh Puthiyaparambil wrote:
> > Can this patch be applied to both xen-unstable and xen-4.1-testing so
> > that it makes it into xen-4.1.1?
> [...]
> > Fix a couple of minor bugs in xen-access test program.
>
> It's always useful to describe _what_ bugs in a changelog message.
>
> > Signed-off-by: Aravindh Puthiyaparambil <aravindh@virtuata.com>
>
>
>
>
Sorry about that. Here is the explanation.
Thanks,
Aravindh
Fix -m option handling.
Fix a segfault that was occurring during program exit.
Signed-off-by: Aravindh Puthiyaparambil <aravindh@virtuata.com>
[-- Attachment #1.2: Type: text/html, Size: 1246 bytes --]
[-- Attachment #2: xen-access-bugfixes.patch --]
[-- Type: application/octet-stream, Size: 700 bytes --]
diff -r 6a2089f00dc7 tools/tests/xen-access/xen-access.c
--- a/tools/tests/xen-access/xen-access.c Fri Mar 25 10:22:10 2011 +0000
+++ b/tools/tests/xen-access/xen-access.c Thu May 05 12:35:38 2011 -0700
@@ -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;
}
[-- Attachment #3: Type: text/plain, Size: 138 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-05-06 8:09 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-05 19:39 [PATCH] tests: xen-access: minor bug fixes Aravindh Puthiyaparambil
2011-05-06 7:58 ` Ian Campbell
2011-05-06 8:09 ` Aravindh Puthiyaparambil
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).