Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1814686pxb; Sat, 23 Jan 2021 06:30:53 -0800 (PST) X-Google-Smtp-Source: ABdhPJyAlHrplvsVKRtvkNHoLwjpJXjDZzsGokoymXYqYtuUcipyZFN/y3DKK8Pv9VTvZ01i+ao7 X-Received: by 2002:a05:6402:404:: with SMTP id q4mr1192732edv.295.1611412253417; Sat, 23 Jan 2021 06:30:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611412253; cv=none; d=google.com; s=arc-20160816; b=WzBajNe80ErYzbGtvkhE4jk91OA0iwMX2feE59r6Qsj+TJnir2++EaSnfN4K/7G3ae lOpAJdAC8ARdCpUs9dZ10Axz57uXtGLXqEeC1nf+DNX3P4WFW8DAqH9cm0a+LVOxjGiD KiqUl7CtOjyd+2k0S6uizXZ5fmI4UjKrjbbehtau9WNA27N3C4zJk9luo/TEdXWWIYGH yuFFep0KbcfzYeNyaeQimQpyXEus4CzPUpnjKInl16thP8UrBGq1zJ6BVBEU7vQLeDrB /5Fnti5GcIUXttBxiSFlWFqEvCYExahjqrMfpNOa2bWb0QlwBuD568DO0TP9QqQfPgis 6pLg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=688kFXiucwDM7lMAH7Kq47QxpdUrYCzdpK7u07x3bgU=; b=UF73q+L6AHiXbBJBgc9s/vWtqsGR2EFrr8xZQk/yFwValp1q2x6atwDw9fcL0ma+nb jr8K+Cj0gm7vmT8fbN6PSpb9v0mKWcQwIH2xv0lQevOKzamWbChhlYU6JRAYEVDWjfCR ChnbBJPU891aKdti0VqaZFTQWvgq+U/pscWyOJeaszyUniUf8wjjZ+lDTlaAEbZVRMu6 MYtWjwWYxyUY0I/AM4epgpblaAZqWTjlGkZcLjduhlMXgReib+RKocgKyKyrHkAL7Vc2 bI2Uw9NHJv0eJrmrjkHDU46Un9EN7T9ZrelpY81tWehVqWUJQf1KibGwn2OVLvc/o1zp JGsw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=crapouillou.net Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id eb8si3917004edb.6.2021.01.23.06.30.27; Sat, 23 Jan 2021 06:30:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=crapouillou.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726111AbhAWO2g (ORCPT + 99 others); Sat, 23 Jan 2021 09:28:36 -0500 Received: from aposti.net ([89.234.176.197]:33882 "EHLO aposti.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726021AbhAWO2d (ORCPT ); Sat, 23 Jan 2021 09:28:33 -0500 From: Paul Cercueil To: Bin Liu , Greg Kroah-Hartman Cc: Tony Lindgren , od@zcrc.me, linux-mips@vger.kernel.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, Paul Cercueil Subject: [RE-RESEND PATCH 4/4] usb: musb: jz4740: Add missing CR to error strings Date: Sat, 23 Jan 2021 14:25:02 +0000 Message-Id: <20210123142502.16980-4-paul@crapouillou.net> In-Reply-To: <20210123142502.16980-1-paul@crapouillou.net> References: <20210123142502.16980-1-paul@crapouillou.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org If you pass a string that is not terminated with a carriage return to dev_err(), it will eventually be printed with a carriage return, but not right away, since the kernel will wait for a pr_cont(). Signed-off-by: Paul Cercueil --- drivers/usb/musb/jz4740.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/drivers/usb/musb/jz4740.c b/drivers/usb/musb/jz4740.c index c4fe1f4cd17a..5b7d576bf6ee 100644 --- a/drivers/usb/musb/jz4740.c +++ b/drivers/usb/musb/jz4740.c @@ -116,13 +116,13 @@ static int jz4740_musb_init(struct musb *musb) if (IS_ERR(musb->xceiv)) { err = PTR_ERR(musb->xceiv); if (err != -EPROBE_DEFER) - dev_err(dev, "No transceiver configured: %d", err); + dev_err(dev, "No transceiver configured: %d\n", err); return err; } glue->role_sw = usb_role_switch_register(dev, &role_sw_desc); if (IS_ERR(glue->role_sw)) { - dev_err(dev, "Failed to register USB role switch"); + dev_err(dev, "Failed to register USB role switch\n"); return PTR_ERR(glue->role_sw); } @@ -205,26 +205,26 @@ static int jz4740_probe(struct platform_device *pdev) pdata = of_device_get_match_data(dev); if (!pdata) { - dev_err(dev, "missing platform data"); + dev_err(dev, "missing platform data\n"); return -EINVAL; } musb = platform_device_alloc("musb-hdrc", PLATFORM_DEVID_AUTO); if (!musb) { - dev_err(dev, "failed to allocate musb device"); + dev_err(dev, "failed to allocate musb device\n"); return -ENOMEM; } clk = devm_clk_get(dev, "udc"); if (IS_ERR(clk)) { - dev_err(dev, "failed to get clock"); + dev_err(dev, "failed to get clock\n"); ret = PTR_ERR(clk); goto err_platform_device_put; } ret = clk_prepare_enable(clk); if (ret) { - dev_err(dev, "failed to enable clock"); + dev_err(dev, "failed to enable clock\n"); goto err_platform_device_put; } @@ -240,19 +240,19 @@ static int jz4740_probe(struct platform_device *pdev) ret = platform_device_add_resources(musb, pdev->resource, pdev->num_resources); if (ret) { - dev_err(dev, "failed to add resources"); + dev_err(dev, "failed to add resources\n"); goto err_clk_disable; } ret = platform_device_add_data(musb, pdata, sizeof(*pdata)); if (ret) { - dev_err(dev, "failed to add platform_data"); + dev_err(dev, "failed to add platform_data\n"); goto err_clk_disable; } ret = platform_device_add(musb); if (ret) { - dev_err(dev, "failed to register musb device"); + dev_err(dev, "failed to register musb device\n"); goto err_clk_disable; } -- 2.29.2