Skip to content
Snippets Groups Projects
Commit a18c2706 authored by Steve Rae's avatar Steve Rae Committed by Marek Vasut
Browse files

fastboot: update error and warning messages


Fix the formatting in error messages, and demote one error message
to a warning, as it is only informational.

Signed-off-by: default avatarSteve Rae <srae@broadcom.com>
parent 53419bac
Branches
Tags
No related merge requests found
...@@ -382,7 +382,7 @@ static void cb_getvar(struct usb_ep *ep, struct usb_request *req) ...@@ -382,7 +382,7 @@ static void cb_getvar(struct usb_ep *ep, struct usb_request *req)
strsep(&cmd, ":"); strsep(&cmd, ":");
if (!cmd) { if (!cmd) {
error("missing variable\n"); error("missing variable");
fastboot_tx_write_str("FAILmissing var"); fastboot_tx_write_str("FAILmissing var");
return; return;
} }
...@@ -413,7 +413,7 @@ static void cb_getvar(struct usb_ep *ep, struct usb_request *req) ...@@ -413,7 +413,7 @@ static void cb_getvar(struct usb_ep *ep, struct usb_request *req)
else else
strcpy(response, "FAILValue not set"); strcpy(response, "FAILValue not set");
} else { } else {
error("unknown variable: %s\n", cmd); printf("WARNING: unknown variable: %s\n", cmd);
strcpy(response, "FAILVariable not implemented"); strcpy(response, "FAILVariable not implemented");
} }
fastboot_tx_write_str(response); fastboot_tx_write_str(response);
...@@ -561,7 +561,7 @@ static void cb_flash(struct usb_ep *ep, struct usb_request *req) ...@@ -561,7 +561,7 @@ static void cb_flash(struct usb_ep *ep, struct usb_request *req)
strsep(&cmd, ":"); strsep(&cmd, ":");
if (!cmd) { if (!cmd) {
error("missing partition name\n"); error("missing partition name");
fastboot_tx_write_str("FAILmissing partition name"); fastboot_tx_write_str("FAILmissing partition name");
return; return;
} }
...@@ -683,7 +683,7 @@ static void rx_handler_command(struct usb_ep *ep, struct usb_request *req) ...@@ -683,7 +683,7 @@ static void rx_handler_command(struct usb_ep *ep, struct usb_request *req)
} }
if (!func_cb) { if (!func_cb) {
error("unknown command: %s\n", cmdbuf); error("unknown command: %s", cmdbuf);
fastboot_tx_write_str("FAILunknown command"); fastboot_tx_write_str("FAILunknown command");
} else { } else {
if (req->actual < req->length) { if (req->actual < req->length) {
...@@ -691,7 +691,7 @@ static void rx_handler_command(struct usb_ep *ep, struct usb_request *req) ...@@ -691,7 +691,7 @@ static void rx_handler_command(struct usb_ep *ep, struct usb_request *req)
buf[req->actual] = 0; buf[req->actual] = 0;
func_cb(ep, req); func_cb(ep, req);
} else { } else {
error("buffer overflow\n"); error("buffer overflow");
fastboot_tx_write_str("FAILbuffer overflow"); fastboot_tx_write_str("FAILbuffer overflow");
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment