From 4f24125ccc7748bb971b686f4c1b18c6f4a5e4ac Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Tue, 14 Jan 2014 16:17:08 -0800 Subject: Fix fastbootd build for 64-bit. Change-Id: I04bef46f0125fd6a8fc0cb966bd257ad594aff1e --- fastbootd/commands/partitions.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'fastbootd/commands/partitions.c') diff --git a/fastbootd/commands/partitions.c b/fastbootd/commands/partitions.c index de80ea3..74232e6 100644 --- a/fastbootd/commands/partitions.c +++ b/fastbootd/commands/partitions.c @@ -42,6 +42,7 @@ #include #include #include +#include #include "partitions.h" #include "debug.h" @@ -80,7 +81,7 @@ int gpt_mmap(struct GPT_mapping *mapping, uint64_t location, int size, int fd) uint64_t sz = get_file_size64(fd); if (sz < size + location) { - D(ERR, "the location of mapping area is outside of the device size %lld", sz); + D(ERR, "the location of mapping area is outside of the device size %" PRId64, sz); return 1; } location = ALIGN_DOWN(location, PAGE_SIZE); @@ -89,7 +90,7 @@ int gpt_mmap(struct GPT_mapping *mapping, uint64_t location, int size, int fd) if (mapping->map_ptr == MAP_FAILED) { mapping->ptr = MAP_FAILED; - D(ERR, "map failed %d", (int) mapping->map_ptr); + D(ERR, "map failed: %s", strerror(errno)); return 1; } -- cgit v1.1