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Ă© <[email protected]>
---

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
[email protected]
https://www.redhat.com/mailman/listinfo/libosinfo

Reply via email to