Skip to content

Commit

Permalink
sdp: add missing line breaks
Browse files Browse the repository at this point in the history
  • Loading branch information
dhewg committed Feb 7, 2018
1 parent 290df6f commit 7c7ecbe
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions cmd/usb_gadget_sdp.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ static int do_sdp(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])

ret = sdp_init(controller_index);
if (ret) {
pr_err("SDP init failed: %d", ret);
pr_err("SDP init failed: %d\n", ret);
goto exit;
}

/* This command typically does not return but jumps to an image */
sdp_handle(controller_index);
pr_err("SDP ended");
pr_err("SDP ended\n");

exit:
g_dnl_unregister();
Expand Down
4 changes: 2 additions & 2 deletions common/spl/spl_sdp.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ static int spl_sdp_load_image(struct spl_image_info *spl_image,

ret = sdp_init(controller_index);
if (ret) {
pr_err("SDP init failed: %d", ret);
pr_err("SDP init failed: %d\n", ret);
return -ENODEV;
}

/* This command typically does not return but jumps to an image */
sdp_handle(controller_index);
pr_err("SDP ended");
pr_err("SDP ended\n");

return -EINVAL;
}
Expand Down
14 changes: 7 additions & 7 deletions drivers/usb/gadget/f_sdp.c
Original file line number Diff line number Diff line change
Expand Up @@ -238,12 +238,12 @@ static void sdp_rx_command_complete(struct usb_ep *ep, struct usb_request *req)
u8 report = data[0];

if (status != 0) {
pr_err("Status: %d", status);
pr_err("Status: %d\n", status);
return;
}

if (report != 1) {
pr_err("Unexpected report %d", report);
pr_err("Unexpected report %d\n", report);
return;
}

Expand Down Expand Up @@ -323,12 +323,12 @@ static void sdp_rx_data_complete(struct usb_ep *ep, struct usb_request *req)
int datalen = req->length - 1;

if (status != 0) {
pr_err("Status: %d", status);
pr_err("Status: %d\n", status);
return;
}

if (report != 2) {
pr_err("Unexpected report %d", report);
pr_err("Unexpected report %d\n", report);
return;
}

Expand Down Expand Up @@ -361,7 +361,7 @@ static void sdp_rx_data_complete(struct usb_ep *ep, struct usb_request *req)
sdp->state = SDP_STATE_TX_SEC_CONF;
break;
default:
pr_err("Invalid state: %d", sdp->state);
pr_err("Invalid state: %d\n", sdp->state);
}
}

Expand All @@ -371,7 +371,7 @@ static void sdp_tx_complete(struct usb_ep *ep, struct usb_request *req)
int status = req->status;

if (status != 0) {
pr_err("Status: %d", status);
pr_err("Status: %d\n", status);
return;
}

Expand All @@ -394,7 +394,7 @@ static void sdp_tx_complete(struct usb_ep *ep, struct usb_request *req)
sdp->state = SDP_STATE_IDLE;
break;
default:
pr_err("Wrong State: %d", sdp->state);
pr_err("Wrong State: %d\n", sdp->state);
sdp->state = SDP_STATE_IDLE;
break;
}
Expand Down

0 comments on commit 7c7ecbe

Please sign in to comment.