]> git.ozlabs.org Git - petitboot/blobdiff - discover/device-handler.c
printf: Fix format type warnings
[petitboot] / discover / device-handler.c
index 82230154ba77d9a314f50d3a41fe184837197d40..7a570f9e612da52ff7d098ee2e7ec8ac6eb3bb23 100644 (file)
@@ -1,4 +1,5 @@
 #include <assert.h>
+#include <inttypes.h>
 #include <stdlib.h>
 #include <stdbool.h>
 #include <unistd.h>
@@ -653,7 +654,7 @@ void device_handler_status_download(struct device_handler *handler,
                        unit++;
                }
                update = talloc_asprintf(handler,
-                               _("%u %s downloading: %.0f%% - %lu%cB"),
+                               _("%u %s downloading: %.0f%% - %" PRIu64 "%cB"),
                                handler->n_progress,
                                ngettext("item", "items", handler->n_progress),
                                (current / total) * 100, current_converted,