mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 05:35:25 +00:00
examples: Fix printf format string in event-test.c
Inside of myDomainEventMemoryFailureCallback() arguments are printed via printf but '%d' is used to print @flags (of type uint). Use '0x%x' instead, just like we do everywhere else. Signed-off-by: zhujun2 <zhujun2@cmss.chinamobile.com> Signed-off-by: Michal Privoznik <mprivozn@redhat.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
11839c8cc1
commit
c80f0852ca
@ -969,7 +969,7 @@ myDomainEventMemoryFailureCallback(virConnectPtr conn G_GNUC_UNUSED,
|
||||
void *opaque G_GNUC_UNUSED)
|
||||
{
|
||||
printf("%s EVENT: Domain %s(%d) memory failure: recipient '%d', "
|
||||
"aciont '%d', flags '%d'\n", __func__, virDomainGetName(dom),
|
||||
"aciont '%d', flags '0x%x'\n", __func__, virDomainGetName(dom),
|
||||
virDomainGetID(dom), recipient, action, flags);
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user