mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-21 20:15:17 +00:00
viracpi: Fir error format string in virAcpiParseIORTNodeHeader()
Inside of virAcpiParseIORTNodeHeader() there's an virReportError() which reports size of a structure using sizeof() operator. Well, it's not well documented but the returned type of sizeof() is apparently size_t but the format string uses %lu. Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
d335f49c70
commit
ab6e04d7ce
@ -102,7 +102,7 @@ virAcpiParseIORTNodeHeader(int fd,
|
||||
* least size of header itself. */
|
||||
if (nodeHeader->len < sizeof(*nodeHeader)) {
|
||||
virReportError(VIR_ERR_INTERNAL_ERROR,
|
||||
_("IORT table node type %1$s has invalid length: got %2$u, expected at least %3$lu"),
|
||||
_("IORT table node type %1$s has invalid length: got %2$u, expected at least %3$zu"),
|
||||
NULLSTR(typeStr), (unsigned int)nodeHeader->len, sizeof(*nodeHeader));
|
||||
return -1;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user