diff options
Diffstat (limited to 'discover')
-rw-r--r-- | discover/device-handler.c | 3 | ||||
-rw-r--r-- | discover/devmapper.c | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/discover/device-handler.c b/discover/device-handler.c index 8223015..7a570f9 100644 --- a/discover/device-handler.c +++ b/discover/device-handler.c @@ -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, diff --git a/discover/devmapper.c b/discover/devmapper.c index 2b28e0f..d8445e6 100644 --- a/discover/devmapper.c +++ b/discover/devmapper.c @@ -2,6 +2,7 @@ #include <types/types.h> #include <log/log.h> #include <errno.h> +#include <inttypes.h> #include <string.h> #include <sys/types.h> @@ -231,7 +232,7 @@ static int run_create_task(const char *dm_name, const struct target *target) struct dm_task *task; uint32_t cookie; - pb_debug("%s: %lu %lu '%s' '%s'\n", __func__, + pb_debug("%s: %" PRIu64 " %" PRIu64 " '%s' '%s'\n", __func__, target->start_sector, target->end_sector, target->ttype, target->params); |