]> git.sur5r.net Git - u-boot/commitdiff
usb: gadget: sdp: add missing line breaks
authorAndre Heider <a.heider@gmail.com>
Thu, 15 Feb 2018 06:08:55 +0000 (07:08 +0100)
committerMarek Vasut <marex@denx.de>
Wed, 21 Feb 2018 19:28:15 +0000 (20:28 +0100)
Cosmetic change.

Signed-off-by: Andre Heider <a.heider@gmail.com>
Reviewed-by: Lukasz Majewski <lukma@denx.de>
Acked-by: Stefan Agner <stefan.agner@toradex.com>
cmd/usb_gadget_sdp.c
common/spl/spl_sdp.c
drivers/usb/gadget/f_sdp.c

index ae4d73c1250d02eb082d65ea687c2d6ad663412e..97d00ec5453879c37c40377454bd6aa2807e18bd 100644 (file)
@@ -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();
index 333d518f4d6e777aa603c024c985082db180b485..0c4603a3db3b881c37f56f908654fe64d840f985 100644 (file)
@@ -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;
 }
index dd7b9cddb1974cc45a0ba3ec2460392205b28112..6da053009515a3ab01241ef4c00687d50ae50e68 100644 (file)
@@ -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;
        }
 
@@ -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;
        }
 
@@ -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);
        }
 }
 
@@ -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;
        }
 
@@ -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;
        }