From: Daniel P. Berrange Date: Wed, 18 Jul 2012 18:32:24 +0000 (+0100) Subject: Add missing "%s" format to const error message in RBD storage driver X-Git-Tag: CVE-2012-3445~146 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=89e23562c9dbb288a1c63a2949e380eb2cea44fd;p=thirdparty%2Flibvirt.git Add missing "%s" format to const error message in RBD storage driver When passing a const message string to the error reporting APIs RBD forgot to use "%s" to avoid GCC format string warnings Signed-off-by: Daniel P. Berrange --- diff --git a/src/storage/storage_backend_rbd.c b/src/storage/storage_backend_rbd.c index 7615dcc37f..bacf0b8638 100644 --- a/src/storage/storage_backend_rbd.c +++ b/src/storage/storage_backend_rbd.c @@ -145,7 +145,7 @@ static int virStorageBackendRBDOpenRADOSConn(virStorageBackendRBDStatePtr *ptr, pool->def->source.hosts[i].name, pool->def->source.hosts[i].port); } else { - virStorageReportError(VIR_ERR_INTERNAL_ERROR, + virStorageReportError(VIR_ERR_INTERNAL_ERROR, "%s", _("received malformed monitor, check the XML definition")); } }