[PATCH] Fix format specifier as glib2 requires libc compatible formats

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



PRId64 is the platform native format, but glib2 guarantees
libc compatible formats even on Windows. So code must use
the G_GUINT64_FORMAT macro instead.

Signed-off-by: Daniel P. Berrangé <berrange@xxxxxxxxxx>
---

Pushed as a CI build fix

 tools/osinfo-db-import.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/osinfo-db-import.c b/tools/osinfo-db-import.c
index f90bef9..b2a52e6 100644
--- a/tools/osinfo-db-import.c
+++ b/tools/osinfo-db-import.c
@@ -64,7 +64,7 @@ static int osinfo_db_import_create_reg(GFile *file,
         }
 
         if (!g_seekable_seek(G_SEEKABLE(os), offset, G_SEEK_SET, NULL, NULL)) {
-            g_printerr("%s: cannot seek to %" PRId64 " in %s\n",
+            g_printerr("%s: cannot seek to %" G_GUINT64_FORMAT " in %s\n",
                        argv0, (uint64_t)offset, g_file_get_path(file));
             goto cleanup;
         }
-- 
2.17.1

_______________________________________________
Libosinfo mailing list
Libosinfo@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libosinfo




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Fedora Users]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux