mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 12:35:17 +00:00
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 <berrange@redhat.com>
This commit is contained in:
parent
1e0bb184a7
commit
89e23562c9
@ -145,7 +145,7 @@ static int virStorageBackendRBDOpenRADOSConn(virStorageBackendRBDStatePtr *ptr,
|
|||||||
pool->def->source.hosts[i].name,
|
pool->def->source.hosts[i].name,
|
||||||
pool->def->source.hosts[i].port);
|
pool->def->source.hosts[i].port);
|
||||||
} else {
|
} else {
|
||||||
virStorageReportError(VIR_ERR_INTERNAL_ERROR,
|
virStorageReportError(VIR_ERR_INTERNAL_ERROR, "%s",
|
||||||
_("received malformed monitor, check the XML definition"));
|
_("received malformed monitor, check the XML definition"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user