From 76ce4aadee1a7a890001affed54a0fb1110b1793 Mon Sep 17 00:00:00 2001 From: Adriana Kobylak Date: Wed, 18 Feb 2015 16:14:28 -0600 Subject: Support to compile in 64bit for Ubuntu Little Endian --- fpart/src/cmd_erase.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'fpart/src/cmd_erase.c') diff --git a/fpart/src/cmd_erase.c b/fpart/src/cmd_erase.c index e250cec..931283c 100644 --- a/fpart/src/cmd_erase.c +++ b/fpart/src/cmd_erase.c @@ -65,7 +65,7 @@ int command_erase(args_t * args) if (strrchr(name, '$') == NULL) strcat(name, "$"); - size_t pad = 0xff; + uint32_t pad = 0xff; if (args->pad != NULL) if (parse_size(args->pad, &pad) < 0) return -1; @@ -97,7 +97,7 @@ int command_erase(args_t * args) args->force != f_FORCE) { if (args->verbose == f_VERBOSE) printf("%llx: %s: protected, skipping erase\n", - __poffset, full_name); + (long long)__poffset, full_name); return 0; } @@ -105,7 +105,7 @@ int command_erase(args_t * args) return -1; if (args->verbose == f_VERBOSE) - printf("%llx: %s: truncate size '%x'\n", __poffset, + printf("%llx: %s: truncate size '%x'\n", (long long)__poffset, full_name, 0); for (uint32_t i=0; iverbose == f_VERBOSE) - printf("%llx: %s: user[] zero\n", __poffset, full_name); + printf("%llx: %s: user[] zero\n", (long long)__poffset, full_name); list_iter_init(&it, &list, LI_FLAG_FWD); list_for_each(&it, node, node) { if (node->entry.base == entry->base) { if (args->verbose == f_VERBOSE) printf("%llx: %s: skipping fill with " - "'%x'\n", __poffset, full_name, + "'%x'\n", (long long)__poffset, full_name, (uint8_t)pad); return 0; } @@ -165,7 +165,7 @@ int command_erase(args_t * args) return -1; if (args->verbose == f_VERBOSE) - printf("%llx: %s: filled with '%x'\n", __poffset, + printf("%llx: %s: filled with '%x'\n", (long long)__poffset, full_name, (uint8_t)pad); return 0; -- cgit v1.2.1