summaryrefslogtreecommitdiffstats
path: root/drivers/usb
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2018-12-07 10:49:29 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2018-12-07 11:26:02 +0100
commit6992f3194fec86a85eeb112bb5a61852493c41e2 (patch)
tree080bc3d3e5c90f0d89b31290ea290a3118306496 /drivers/usb
parent9afabf549f3b1f3b5566b805ad97c5216dace014 (diff)
downloadbarebox-6992f3194fec86a85eeb112bb5a61852493c41e2.tar.gz
barebox-6992f3194fec86a85eeb112bb5a61852493c41e2.tar.xz
usb: gadget: fastboot: print fastboot messages also to the logs
It's nice to also see on the barebox side what is going on with fastboot, so print the messages to the logs also. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/gadget/f_fastboot.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/usb/gadget/f_fastboot.c b/drivers/usb/gadget/f_fastboot.c
index 067b43ebed..bdf0c807df 100644
--- a/drivers/usb/gadget/f_fastboot.c
+++ b/drivers/usb/gadget/f_fastboot.c
@@ -608,8 +608,11 @@ int fastboot_tx_print(struct f_fastboot *f_fb, enum fastboot_msg_type type,
break;
case FASTBOOT_MSG_FAIL:
f_fb->active = false;
+ pr_err("%pV\n", &vaf);
break;
case FASTBOOT_MSG_INFO:
+ pr_info("%pV\n", &vaf);
+ break;
case FASTBOOT_MSG_DATA:
break;
}
@@ -702,12 +705,12 @@ static void rx_handler_dl_image(struct usb_ep *ep, struct usb_request *req)
req->length = EP_BUFFER_SIZE;
close(f_fb->download_fd);
+ printf("\n");
+
fastboot_tx_print(f_fb, FASTBOOT_MSG_INFO, "Downloading %d bytes finished",
f_fb->download_bytes);
fastboot_tx_print(f_fb, FASTBOOT_MSG_OKAY, "");
-
- printf("\n");
}
req->actual = 0;