@@ -82,7 +82,8 @@ int uImage_probe(const unsigned char *buf, off_t len, unsigned int arch)
if (be32_to_cpu(header.ih_size) > len - sizeof(header)) {
printf("uImage header claims that image has %d bytes\n",
be32_to_cpu(header.ih_size));
- printf("we read only %ld bytes.\n", len - sizeof(header));
+ printf("we read only %lld bytes.\n",
+ (long long)len - sizeof(header));
return -1;
}
#ifdef HAVE_LIBZ
@@ -707,8 +707,8 @@ static int my_load(const char *type, int fileind, int argc, char **argv,
/* slurp in the input kernel */
kernel_buf = slurp_decompress_file(kernel, &kernel_size);
- dbgprintf("kernel: %p kernel_size: 0x%lx\n",
- kernel_buf, kernel_size);
+ dbgprintf("kernel: %p kernel_size: %#llx\n",
+ kernel_buf, (unsigned long long)kernel_size);
if (get_memory_ranges(&info.memory_range, &info.memory_ranges,
info.kexec_flags) < 0 || info.memory_ranges == 0) {
@@ -60,8 +60,8 @@ char *zlib_decompress_file(const char *filename, off_t *r_size)
if ((errno == EINTR) || (errno == EAGAIN))
continue;
_gzerror(fp, &errnum, &msg);
- dbgprintf("Read on %s of %ld bytes failed: %s\n",
- filename, (allocated - size) + 0UL, msg);
+ dbgprintf("Read on %s of %d bytes failed: %s\n",
+ filename, (int)(allocated - size), msg);
size = 0;
goto fail;
}