avoid format-related warnings

* qemud/qemud.c (main): Fix a bogus format string reported as umarked.
* src/virsh.c (cmdVcpupin): Non-literal with no args.
This commit is contained in:
Jim Meyering 2008-04-28 09:09:52 +00:00
parent 8383c6640a
commit 212472b813
3 changed files with 9 additions and 3 deletions

View File

@ -1,3 +1,9 @@
Mon Apr 28 11:08:58 CEST 2008 Jim Meyering <meyering@redhat.com>
avoid format-related warnings
* qemud/qemud.c (main): Fix a bogus format string reported as unmarked.
* src/virsh.c (cmdVcpupin): Non-literal with no args.
Mon Apr 28 10:26:17 CEST 2008 Daniel Veillard <veillard@redhat.com>
* docs/Makefile.am docs/et.png docs/libvirt.css docs/page.xsl

View File

@ -2164,8 +2164,8 @@ int main(int argc, char **argv) {
const char *sockdirname = LOCAL_STATE_DIR "/run/libvirt";
if (chown(sockdirname, -1, unix_sock_gid) < 0)
qemudLog(QEMUD_ERR, "%s %s",
_("Failed to change group ownership of "), sockdirname);
qemudLog(QEMUD_ERR, _("Failed to change group ownership of %s"),
sockdirname);
}
if (godaemon) {

View File

@ -1745,7 +1745,7 @@ cmdVcpupin(vshControl * ctl, vshCmd * cmd)
}
if (vcpu >= info.nrVirtCpu) {
vshError(ctl, FALSE, _("vcpupin: Invalid vCPU number."));
vshError(ctl, FALSE, "%s", _("vcpupin: Invalid vCPU number."));
virDomainFree(dom);
return FALSE;
}