summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorEric Nelson <eric.nelson@boundarydevices.com>2014-09-30 12:05:41 -0700
committerMarek Vasut <marex@denx.de>2014-10-06 14:50:44 +0200
commit84c24f66c2971f2a4149f60228bfc08f29ba9d30 (patch)
treed3f5e568ba258177da568a7c24ece08aa8d8018c /drivers
parentc674a6660e9934cf332bb007726997b1c3686bf1 (diff)
downloadblackbird-obmc-uboot-84c24f66c2971f2a4149f60228bfc08f29ba9d30.tar.gz
blackbird-obmc-uboot-84c24f66c2971f2a4149f60228bfc08f29ba9d30.zip
usb: gadget: fastboot: explicitly set radix of maximum download size
The processing of the max-download-size variable requires a radix specifier, or the fastboot host tool will interpret it as an octal number. See function get_target_sparse_limit() in file fastboot/fastboot.c in the AOSP: https://android.googlesource.com/platform/system/core/+/master Signed-off-by: Eric Nelson <eric.nelson@boundarydevices.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/usb/gadget/f_fastboot.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/gadget/f_fastboot.c b/drivers/usb/gadget/f_fastboot.c
index 3e1c0a9faf..392379dce4 100644
--- a/drivers/usb/gadget/f_fastboot.c
+++ b/drivers/usb/gadget/f_fastboot.c
@@ -355,7 +355,7 @@ static void cb_getvar(struct usb_ep *ep, struct usb_request *req)
!strcmp_l1("max-download-size", cmd)) {
char str_num[12];
- sprintf(str_num, "%08x", CONFIG_USB_FASTBOOT_BUF_SIZE);
+ sprintf(str_num, "0x%08x", CONFIG_USB_FASTBOOT_BUF_SIZE);
strncat(response, str_num, chars_left);
} else if (!strcmp_l1("serialno", cmd)) {
s = getenv("serial#");
OpenPOWER on IntegriCloud