don't print an uninitialized integer in a diagnostic

* src/virterror.c (__virErrorMsg) [VIR_ERR_XEN_CALL]:
Use a format with only one % directive.
This commit is contained in:
Jim Meyering 2008-11-04 15:02:36 +00:00
parent c8dc7e8ce2
commit b5bb5d950f
2 changed files with 9 additions and 3 deletions

View File

@ -1,4 +1,10 @@
Tue, 4 Nov 2008 14:58:30 +0100 Jim Meyering <meyering@redhat.com>
Tue Nov 4 14:58:31 CET 2008 Jim Meyering <meyering@redhat.com>
don't print an uninitialized integer in a diagnostic
* src/virterror.c (__virErrorMsg) [VIR_ERR_XEN_CALL]:
Use a format with only one % directive.
Tue Nov 4 14:58:30 CET 2008 Jim Meyering <meyering@redhat.com>
add a test for today's fix
* tests/cpuset: New script. Test for today's fix.

View File

@ -1,7 +1,7 @@
/*
* virterror.c: implements error handling and reporting code for libvirt
*
* Copy: Copyright (C) 2006 Red Hat, Inc.
* Copy: Copyright (C) 2006, 2008 Red Hat, Inc.
*
* See COPYING.LIB for the License of this software
*
@ -516,7 +516,7 @@ __virErrorMsg(virErrorNumber error, const char *info)
errmsg = _("could not connect to Xen Store %s");
break;
case VIR_ERR_XEN_CALL:
errmsg = _("failed Xen syscall %s %d");
errmsg = _("failed Xen syscall %s");
break;
case VIR_ERR_OS_TYPE:
if (info == NULL)