[PATCH] fix error in printf format string

zhujun2 posted 1 patch 6 months, 2 weeks ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/libvirt tags/patchew/20231017064320.10690-1-zhujun2@cmss.chinamobile.com
There is a newer version of this series
examples/c/misc/event-test.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[PATCH] fix error in printf format string
Posted by zhujun2 6 months, 2 weeks ago
use '%u' to printf unsigned int

Signed-off-by: zhujun2 <zhujun2@cmss.chinamobile.com>
---
 examples/c/misc/event-test.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/examples/c/misc/event-test.c b/examples/c/misc/event-test.c
index 813bca2699..07d86500cd 100644
--- a/examples/c/misc/event-test.c
+++ b/examples/c/misc/event-test.c
@@ -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 '%u'\n", __func__, virDomainGetName(dom),
            virDomainGetID(dom), recipient, action, flags);
     return 0;
 }
-- 
2.17.1