]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
cmd: add missing line breaks for pr_err()
authorSeung-Woo Kim <sw0312.kim@samsung.com>
Mon, 4 Jun 2018 07:04:51 +0000 (16:04 +0900)
committerTom Rini <trini@konsulko.com>
Fri, 8 Jun 2018 00:06:29 +0000 (20:06 -0400)
After the commit 9b643e312d52 ("treewide: replace with error() with
pr_err()"), there are some pr_err() with no line break. Add missing
line breaks.

Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
cmd/fastboot.c
cmd/regulator.c
cmd/thordown.c
cmd/usb_mass_storage.c

index 557257aef8437bcb79d60824a62574645740b931..e6ae0570d5b2f29bc4f8125c78603cac7f6fa126 100644 (file)
@@ -48,7 +48,7 @@ static int do_fastboot_usb(int argc, char *const argv[],
 
        ret = board_usb_init(controller_index, USB_INIT_DEVICE);
        if (ret) {
-               pr_err("USB init failed: %d", ret);
+               pr_err("USB init failed: %d\n", ret);
                return CMD_RET_FAILURE;
        }
 
index 89461b6ae8b3e062d69c3ceb5e10a599a7474430..ed8d778c8243b3186e4d6578e9955de632c17975 100644 (file)
@@ -70,7 +70,7 @@ static int curr_dev_and_platdata(struct udevice **devp,
 
        *uc_pdata = dev_get_uclass_platdata(*devp);
        if (!*uc_pdata) {
-               pr_err("Regulator: %s - missing platform data!", currdev->name);
+               pr_err("Regulator: %s - missing platform data!\n", currdev->name);
                return CMD_RET_FAILURE;
        }
 
index e297de23a0ef7549c3e5f0e5a20baeaf43851440..2615adad750a6d24db099b026a579664fa65c6b0 100644 (file)
@@ -32,7 +32,7 @@ int do_thor_down(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
        int controller_index = simple_strtoul(usb_controller, NULL, 0);
        ret = board_usb_init(controller_index, USB_INIT_DEVICE);
        if (ret) {
-               pr_err("USB init failed: %d", ret);
+               pr_err("USB init failed: %d\n", ret);
                ret = CMD_RET_FAILURE;
                goto exit;
        }
@@ -41,14 +41,14 @@ int do_thor_down(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
 
        ret = thor_init();
        if (ret) {
-               pr_err("THOR DOWNLOAD failed: %d", ret);
+               pr_err("THOR DOWNLOAD failed: %d\n", ret);
                ret = CMD_RET_FAILURE;
                goto exit;
        }
 
        ret = thor_handle();
        if (ret) {
-               pr_err("THOR failed: %d", ret);
+               pr_err("THOR failed: %d\n", ret);
                ret = CMD_RET_FAILURE;
                goto exit;
        }
index 89b9ddfbb9e6c5b66c3901ffc821b54aecf677f7..0d551141e0dd2a191d035a0653dab1697129e4a7 100644 (file)
@@ -161,21 +161,21 @@ static int do_usb_mass_storage(cmd_tbl_t *cmdtp, int flag,
        controller_index = (unsigned int)(simple_strtoul(
                                usb_controller, NULL, 0));
        if (board_usb_init(controller_index, USB_INIT_DEVICE)) {
-               pr_err("Couldn't init USB controller.");
+               pr_err("Couldn't init USB controller.\n");
                rc = CMD_RET_FAILURE;
                goto cleanup_ums_init;
        }
 
        rc = fsg_init(ums, ums_count);
        if (rc) {
-               pr_err("fsg_init failed");
+               pr_err("fsg_init failed\n");
                rc = CMD_RET_FAILURE;
                goto cleanup_board;
        }
 
        rc = g_dnl_register("usb_dnl_ums");
        if (rc) {
-               pr_err("g_dnl_register failed");
+               pr_err("g_dnl_register failed\n");
                rc = CMD_RET_FAILURE;
                goto cleanup_board;
        }