summaryrefslogtreecommitdiffstats
path: root/fastboot
diff options
context:
space:
mode:
authorYing Wang <wangying@google.com>2014-05-15 20:06:40 -0700
committerYing Wang <wangying@google.com>2014-05-16 09:36:17 -0700
commitcf86e2f85d98ed10cf5e0672e41631f6ea7e3e34 (patch)
tree63d049c680b715b447bbf2d37a47376cf66dafec /fastboot
parent8b2d46a5fcbe81edde4b7c405916282a142a09d2 (diff)
downloadsystem_core-cf86e2f85d98ed10cf5e0672e41631f6ea7e3e34.zip
system_core-cf86e2f85d98ed10cf5e0672e41631f6ea7e3e34.tar.gz
system_core-cf86e2f85d98ed10cf5e0672e41631f6ea7e3e34.tar.bz2
Fix host 64-bit build.
Bug: 13751317 Change-Id: Ib42d24408d053bacc24142ed18fc5f3181d2345b
Diffstat (limited to 'fastboot')
-rw-r--r--fastboot/fastboot.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fastboot/fastboot.c b/fastboot/fastboot.c
index 3a140ab..9c04c21 100644
--- a/fastboot/fastboot.c
+++ b/fastboot/fastboot.c
@@ -32,6 +32,7 @@
#include <errno.h>
#include <fcntl.h>
#include <getopt.h>
+#include <inttypes.h>
#include <limits.h>
#include <stdbool.h>
#include <stdint.h>
@@ -576,7 +577,7 @@ static int64_t get_target_sparse_limit(struct usb_handle *usb)
if (!status) {
limit = strtoul(response, NULL, 0);
if (limit > 0) {
- fprintf(stderr, "target reported max download size of %lld bytes\n",
+ fprintf(stderr, "target reported max download size of %" PRId64 " bytes\n",
limit);
}
}