Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp3452713pxu; Tue, 8 Dec 2020 12:26:03 -0800 (PST) X-Google-Smtp-Source: ABdhPJygelrlA1477URH81Vw89P4UEVCSFLkcxM6Lf4V6gWA0F0jbYiq7NEJiMu9851sx0j8LY8Z X-Received: by 2002:a17:906:d10f:: with SMTP id b15mr23957256ejz.268.1607459162785; Tue, 08 Dec 2020 12:26:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607459162; cv=none; d=google.com; s=arc-20160816; b=MgBVK4N1bqcsMeQWgEtyBzb3KZccBmXwaozVTmj6or2EREdaPDsfXFbcfRwRcRV4LS KQnZZq3sZWO+Y6ClXRvqYQtcjYKtDWb5Uz2EbdFe7bJLYSxtepOxekmd+Hd7teXnET9w Hrd9/TMcttF7IOcMwI1mEfSiaVvLcBvGDXCPejPDgnRUeRrAuo2qpthOLcICnxocrXE0 fNgkfp+Bmc+QDssHtxbaSyU8XRk8NUO1uCHBZaueNFxUqSPVBPItep7rXuMeDxJU2/Ww PFuRQkL/DBpQaOaSqwNJMjYeCjMG++8ePq3lPXLYCxBloHDnNxV9fnr/Ac59iX0qRTxp CfyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=d2X58QXaD6AvnaCbtdR9u1YHukr1nvXW/WlZwqf6R6M=; b=McBgts4gNzk6WmrlDryLfRKirbOeM4+IVmHiRJT0W7TtvGpBKh8juyGBAqsoloKUF+ lT7wrAC650CoJSEVhzuFAWeRdSr/6N5NuoZyT1/Nc+5xNN11UxjkzBc05bvNyEM4gA0T kHBYB9cGUxZBhLrz1EJ3mmWIuXsRTvth1/amvya+bZB0TpGf9EeUJUIyPkSeszIHPte+ mT4sPEPUAEHDtUKCb8MlnRyLCYpeTZnGe9MqdeUBIO5DrJjtF+eJkzg2f4nlHa7jPDQh EfvjBixK+JKSDm7saIKX5M0Ov7w6F2st5WkE2onS94Rwa+2zfpF+a1+Us+MDOBtSGWg6 2frw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=WfKn4IZe; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r27si10741426edx.116.2020.12.08.12.25.39; Tue, 08 Dec 2020 12:26:02 -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; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=WfKn4IZe; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730023AbgLHPy5 (ORCPT + 99 others); Tue, 8 Dec 2020 10:54:57 -0500 Received: from perceval.ideasonboard.com ([213.167.242.64]:54616 "EHLO perceval.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729846AbgLHPy5 (ORCPT ); Tue, 8 Dec 2020 10:54:57 -0500 Received: from pendragon.ideasonboard.com (62-78-145-57.bb.dnainternet.fi [62.78.145.57]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 2320BDD; Tue, 8 Dec 2020 16:54:14 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1607442854; bh=2wSB8O5zUgCIQWkapYaxFspc1mBFwMYFfabVRDPm1t0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=WfKn4IZeFo1Y/MHn2sLSge6lxkPK86xhuM1Q+Cdv7q6vuRom5xv7BapdOdF6BIjP4 NGZim3dov53o8MOvg6Z4no3/XlygBCr5P/P0FWjN6Sylg5GYZAP+v1CUpJvaKVc0Ct z5Jmmy2sEhmIvsfdWWvzTdx6JcpqZ82c2lbltZ2U= Date: Tue, 8 Dec 2020 17:54:11 +0200 From: Laurent Pinchart To: "Enrico Weigelt, metux IT consult" Cc: linux-kernel@vger.kernel.org, balbi@kernel.org, leoyang.li@nxp.com, linux-usb@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Subject: Re: [PATCH] drivers: usb: gadget: prefer pr_*() functions over raw printk() Message-ID: References: <20201208144403.22097-1-info@metux.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20201208144403.22097-1-info@metux.net> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Enrico, Thank you for the patch. On Tue, Dec 08, 2020 at 03:44:03PM +0100, Enrico Weigelt, metux IT consult wrote: > Reduce a bit logging boilerplate by using the preferred pr_*() > macros instead of raw printk(). > > Signed-off-by: Enrico Weigelt, metux IT consult > --- > drivers/usb/gadget/function/uvc.h | 2 +- > drivers/usb/gadget/udc/atmel_usba_udc.c | 2 +- > drivers/usb/gadget/udc/fsl_udc_core.c | 4 +-- > drivers/usb/gadget/udc/fsl_usb2_udc.h | 4 +-- > drivers/usb/gadget/udc/fusb300_udc.c | 64 ++++++++++++++++----------------- > drivers/usb/gadget/udc/goku_udc.c | 2 +- > drivers/usb/gadget/udc/r8a66597-udc.h | 2 +- > 7 files changed, 40 insertions(+), 40 deletions(-) > > diff --git a/drivers/usb/gadget/function/uvc.h b/drivers/usb/gadget/function/uvc.h > index 23ee25383c1f..d546eb7c348c 100644 > --- a/drivers/usb/gadget/function/uvc.h > +++ b/drivers/usb/gadget/function/uvc.h > @@ -49,7 +49,7 @@ extern unsigned int uvc_gadget_trace_param; > #define uvc_trace(flag, msg...) \ > do { \ > if (uvc_gadget_trace_param & flag) \ > - printk(KERN_DEBUG "uvcvideo: " msg); \ > + pr_debug("uvcvideo: " msg); \ > } while (0) > > #define uvcg_dbg(f, fmt, args...) \ > diff --git a/drivers/usb/gadget/udc/atmel_usba_udc.c b/drivers/usb/gadget/udc/atmel_usba_udc.c > index 2b893bceea45..4834fafb3f70 100644 > --- a/drivers/usb/gadget/udc/atmel_usba_udc.c > +++ b/drivers/usb/gadget/udc/atmel_usba_udc.c > @@ -1573,7 +1573,7 @@ static void usba_control_irq(struct usba_udc *udc, struct usba_ep *ep) > * generate or receive a reply right away. */ > usba_ep_writel(ep, CLR_STA, USBA_RX_SETUP); > > - /* printk(KERN_DEBUG "setup: %d: %02x.%02x\n", > + /* pr_debug("setup: %d: %02x.%02x\n", > ep->state, crq.crq.bRequestType, > crq.crq.bRequest); */ I wonder if this shouldn't be dropped instead, commented-out code isn't very useful. > > diff --git a/drivers/usb/gadget/udc/fsl_udc_core.c b/drivers/usb/gadget/udc/fsl_udc_core.c > index ad6ff9c4188e..cab4def04f9f 100644 > --- a/drivers/usb/gadget/udc/fsl_udc_core.c > +++ b/drivers/usb/gadget/udc/fsl_udc_core.c > @@ -1474,7 +1474,7 @@ __acquires(udc->lock) > mdelay(10); > tmp = fsl_readl(&dr_regs->portsc1) | (ptc << 16); > fsl_writel(tmp, &dr_regs->portsc1); > - printk(KERN_INFO "udc: switch to test mode %d.\n", ptc); > + pr_info("udc: switch to test mode %d.\n", ptc); > } > > return; > @@ -1952,7 +1952,7 @@ static int fsl_udc_start(struct usb_gadget *g, > if (!IS_ERR_OR_NULL(udc_controller->transceiver)) { > /* Suspend the controller until OTG enable it */ > udc_controller->stopped = 1; > - printk(KERN_INFO "Suspend udc for OTG auto detect\n"); > + pr_info("Suspend udc for OTG auto detect\n"); > > /* connect to bus through transceiver */ > if (!IS_ERR_OR_NULL(udc_controller->transceiver)) { > diff --git a/drivers/usb/gadget/udc/fsl_usb2_udc.h b/drivers/usb/gadget/udc/fsl_usb2_udc.h > index 4ba651ae9048..b180bf14dd0c 100644 > --- a/drivers/usb/gadget/udc/fsl_usb2_udc.h > +++ b/drivers/usb/gadget/udc/fsl_usb2_udc.h > @@ -509,7 +509,7 @@ struct fsl_udc { > /*-------------------------------------------------------------------------*/ > > #ifdef DEBUG > -#define DBG(fmt, args...) printk(KERN_DEBUG "[%s] " fmt "\n", \ > +#define DBG(fmt, args...) pr_debug("[%s] " fmt "\n", \ > __func__, ## args) > #else > #define DBG(fmt, args...) do{}while(0) > @@ -535,7 +535,7 @@ static void dump_msg(const char *label, const u8 * buf, unsigned int length) > p += 3; > } > *p = 0; > - printk(KERN_DEBUG "%6x: %s\n", start, line); > + pr_debug("%6x: %s\n", start, line); > buf += num; > start += num; > length -= num; > diff --git a/drivers/usb/gadget/udc/fusb300_udc.c b/drivers/usb/gadget/udc/fusb300_udc.c > index 9af8b415f303..c4e7e4b8e46f 100644 > --- a/drivers/usb/gadget/udc/fusb300_udc.c > +++ b/drivers/usb/gadget/udc/fusb300_udc.c > @@ -352,24 +352,24 @@ static void fusb300_wrcxf(struct fusb300_ep *ep, > for (i = length >> 2; i > 0; i--) { > data = *tmp | *(tmp + 1) << 8 | *(tmp + 2) << 16 | > *(tmp + 3) << 24; > - printk(KERN_DEBUG " 0x%x\n", data); > + pr_debug(" 0x%x\n", data); > iowrite32(data, fusb300->reg + FUSB300_OFFSET_CXPORT); > tmp = tmp + 4; > } > switch (length % 4) { > case 1: > data = *tmp; > - printk(KERN_DEBUG " 0x%x\n", data); > + pr_debug(" 0x%x\n", data); > iowrite32(data, fusb300->reg + FUSB300_OFFSET_CXPORT); > break; > case 2: > data = *tmp | *(tmp + 1) << 8; > - printk(KERN_DEBUG " 0x%x\n", data); > + pr_debug(" 0x%x\n", data); > iowrite32(data, fusb300->reg + FUSB300_OFFSET_CXPORT); > break; > case 3: > data = *tmp | *(tmp + 1) << 8 | *(tmp + 2) << 16; > - printk(KERN_DEBUG " 0x%x\n", data); > + pr_debug(" 0x%x\n", data); > iowrite32(data, fusb300->reg + FUSB300_OFFSET_CXPORT); > break; > default: > @@ -390,7 +390,7 @@ static void fusb300_clear_epnstall(struct fusb300 *fusb300, u8 ep) > u32 reg = ioread32(fusb300->reg + FUSB300_OFFSET_EPSET0(ep)); > > if (reg & FUSB300_EPSET0_STL) { > - printk(KERN_DEBUG "EP%d stall... Clear!!\n", ep); > + pr_debug("EP%d stall... Clear!!\n", ep); > reg |= FUSB300_EPSET0_STL_CLR; > iowrite32(reg, fusb300->reg + FUSB300_OFFSET_EPSET0(ep)); > } > @@ -402,7 +402,7 @@ static void ep0_queue(struct fusb300_ep *ep, struct fusb300_request *req) > if (req->req.length) { > fusb300_wrcxf(ep, req); > } else > - printk(KERN_DEBUG "%s : req->req.length = 0x%x\n", > + pr_debug("%s : req->req.length = 0x%x\n", > __func__, req->req.length); > if ((req->req.length == req->req.actual) || > (req->req.actual < ep->ep.maxpacket)) > @@ -565,7 +565,7 @@ static void fusb300_rdcxf(struct fusb300 *fusb300, > > for (i = (length >> 2); i > 0; i--) { > data = ioread32(fusb300->reg + FUSB300_OFFSET_CXPORT); > - printk(KERN_DEBUG " 0x%x\n", data); > + pr_debug(" 0x%x\n", data); > *tmp = data & 0xFF; > *(tmp + 1) = (data >> 8) & 0xFF; > *(tmp + 2) = (data >> 16) & 0xFF; > @@ -576,18 +576,18 @@ static void fusb300_rdcxf(struct fusb300 *fusb300, > switch (length % 4) { > case 1: > data = ioread32(fusb300->reg + FUSB300_OFFSET_CXPORT); > - printk(KERN_DEBUG " 0x%x\n", data); > + pr_debug(" 0x%x\n", data); > *tmp = data & 0xFF; > break; > case 2: > data = ioread32(fusb300->reg + FUSB300_OFFSET_CXPORT); > - printk(KERN_DEBUG " 0x%x\n", data); > + pr_debug(" 0x%x\n", data); > *tmp = data & 0xFF; > *(tmp + 1) = (data >> 8) & 0xFF; > break; > case 3: > data = ioread32(fusb300->reg + FUSB300_OFFSET_CXPORT); > - printk(KERN_DEBUG " 0x%x\n", data); > + pr_debug(" 0x%x\n", data); > *tmp = data & 0xFF; > *(tmp + 1) = (data >> 8) & 0xFF; > *(tmp + 2) = (data >> 16) & 0xFF; > @@ -610,7 +610,7 @@ static void fusb300_rdfifo(struct fusb300_ep *ep, > req->req.actual += length; > > if (req->req.actual > req->req.length) > - printk(KERN_DEBUG "req->req.actual > req->req.length\n"); > + pr_debug("req->req.actual > req->req.length\n"); > > for (i = (length >> 2); i > 0; i--) { > data = ioread32(fusb300->reg + > @@ -649,7 +649,7 @@ static void fusb300_rdfifo(struct fusb300_ep *ep, > reg = ioread32(fusb300->reg + FUSB300_OFFSET_IGR1); > reg &= FUSB300_IGR1_SYNF0_EMPTY_INT; > if (i) > - printk(KERN_INFO "sync fifo is not empty!\n"); > + pr_info("sync fifo is not empty!\n"); > i++; > } while (!reg); > } > @@ -677,7 +677,7 @@ static u8 fusb300_get_cxstall(struct fusb300 *fusb300) > static void request_error(struct fusb300 *fusb300) > { > fusb300_set_cxstall(fusb300); > - printk(KERN_DEBUG "request error!!\n"); > + pr_debug("request error!!\n"); > } > > static void get_status(struct fusb300 *fusb300, struct usb_ctrlrequest *ctrl) > @@ -999,7 +999,7 @@ static void check_device_mode(struct fusb300 *fusb300) > fusb300->gadget.speed = USB_SPEED_UNKNOWN; > break; > } > - printk(KERN_INFO "dev_mode = %d\n", (reg & FUSB300_GCR_DEVEN_MSK)); > + pr_info("dev_mode = %d\n", (reg & FUSB300_GCR_DEVEN_MSK)); > } > > > @@ -1076,14 +1076,14 @@ static irqreturn_t fusb300_irq(int irq, void *_fusb300) > if (int_grp1 & FUSB300_IGR1_WARM_RST_INT) { > fusb300_clear_int(fusb300, FUSB300_OFFSET_IGR1, > FUSB300_IGR1_WARM_RST_INT); > - printk(KERN_INFO"fusb300_warmreset\n"); > + pr_info("fusb300_warmreset\n"); > fusb300_reset(); > } > > if (int_grp1 & FUSB300_IGR1_HOT_RST_INT) { > fusb300_clear_int(fusb300, FUSB300_OFFSET_IGR1, > FUSB300_IGR1_HOT_RST_INT); > - printk(KERN_INFO"fusb300_hotreset\n"); > + pr_info("fusb300_hotreset\n"); > fusb300_reset(); > } > > @@ -1097,13 +1097,13 @@ static irqreturn_t fusb300_irq(int irq, void *_fusb300) > if (int_grp1 & FUSB300_IGR1_CX_COMABT_INT) { > fusb300_clear_int(fusb300, FUSB300_OFFSET_IGR1, > FUSB300_IGR1_CX_COMABT_INT); > - printk(KERN_INFO"fusb300_ep0abt\n"); > + pr_info("fusb300_ep0abt\n"); > } > > if (int_grp1 & FUSB300_IGR1_VBUS_CHG_INT) { > fusb300_clear_int(fusb300, FUSB300_OFFSET_IGR1, > FUSB300_IGR1_VBUS_CHG_INT); > - printk(KERN_INFO"fusb300_vbus_change\n"); > + pr_info("fusb300_vbus_change\n"); > } > > if (int_grp1 & FUSB300_IGR1_U3_EXIT_FAIL_INT) { > @@ -1134,25 +1134,25 @@ static irqreturn_t fusb300_irq(int irq, void *_fusb300) > if (int_grp1 & FUSB300_IGR1_U3_EXIT_INT) { > fusb300_clear_int(fusb300, FUSB300_OFFSET_IGR1, > FUSB300_IGR1_U3_EXIT_INT); > - printk(KERN_INFO "FUSB300_IGR1_U3_EXIT_INT\n"); > + pr_info("FUSB300_IGR1_U3_EXIT_INT\n"); > } > > if (int_grp1 & FUSB300_IGR1_U2_EXIT_INT) { > fusb300_clear_int(fusb300, FUSB300_OFFSET_IGR1, > FUSB300_IGR1_U2_EXIT_INT); > - printk(KERN_INFO "FUSB300_IGR1_U2_EXIT_INT\n"); > + pr_info("FUSB300_IGR1_U2_EXIT_INT\n"); > } > > if (int_grp1 & FUSB300_IGR1_U1_EXIT_INT) { > fusb300_clear_int(fusb300, FUSB300_OFFSET_IGR1, > FUSB300_IGR1_U1_EXIT_INT); > - printk(KERN_INFO "FUSB300_IGR1_U1_EXIT_INT\n"); > + pr_info("FUSB300_IGR1_U1_EXIT_INT\n"); > } > > if (int_grp1 & FUSB300_IGR1_U3_ENTRY_INT) { > fusb300_clear_int(fusb300, FUSB300_OFFSET_IGR1, > FUSB300_IGR1_U3_ENTRY_INT); > - printk(KERN_INFO "FUSB300_IGR1_U3_ENTRY_INT\n"); > + pr_info("FUSB300_IGR1_U3_ENTRY_INT\n"); > fusb300_enable_bit(fusb300, FUSB300_OFFSET_SSCR1, > FUSB300_SSCR1_GO_U3_DONE); > } > @@ -1160,31 +1160,31 @@ static irqreturn_t fusb300_irq(int irq, void *_fusb300) > if (int_grp1 & FUSB300_IGR1_U2_ENTRY_INT) { > fusb300_clear_int(fusb300, FUSB300_OFFSET_IGR1, > FUSB300_IGR1_U2_ENTRY_INT); > - printk(KERN_INFO "FUSB300_IGR1_U2_ENTRY_INT\n"); > + pr_info("FUSB300_IGR1_U2_ENTRY_INT\n"); > } > > if (int_grp1 & FUSB300_IGR1_U1_ENTRY_INT) { > fusb300_clear_int(fusb300, FUSB300_OFFSET_IGR1, > FUSB300_IGR1_U1_ENTRY_INT); > - printk(KERN_INFO "FUSB300_IGR1_U1_ENTRY_INT\n"); > + pr_info("FUSB300_IGR1_U1_ENTRY_INT\n"); > } > > if (int_grp1 & FUSB300_IGR1_RESM_INT) { > fusb300_clear_int(fusb300, FUSB300_OFFSET_IGR1, > FUSB300_IGR1_RESM_INT); > - printk(KERN_INFO "fusb300_resume\n"); > + pr_info("fusb300_resume\n"); > } > > if (int_grp1 & FUSB300_IGR1_SUSP_INT) { > fusb300_clear_int(fusb300, FUSB300_OFFSET_IGR1, > FUSB300_IGR1_SUSP_INT); > - printk(KERN_INFO "fusb300_suspend\n"); > + pr_info("fusb300_suspend\n"); > } > > if (int_grp1 & FUSB300_IGR1_HS_LPM_INT) { > fusb300_clear_int(fusb300, FUSB300_OFFSET_IGR1, > FUSB300_IGR1_HS_LPM_INT); > - printk(KERN_INFO "fusb300_HS_LPM_INT\n"); > + pr_info("fusb300_HS_LPM_INT\n"); > } > > if (int_grp1 & FUSB300_IGR1_DEV_MODE_CHG_INT) { > @@ -1195,11 +1195,11 @@ static irqreturn_t fusb300_irq(int irq, void *_fusb300) > > if (int_grp1 & FUSB300_IGR1_CX_COMFAIL_INT) { > fusb300_set_cxstall(fusb300); > - printk(KERN_INFO "fusb300_ep0fail\n"); > + pr_info("fusb300_ep0fail\n"); > } > > if (int_grp1 & FUSB300_IGR1_CX_SETUP_INT) { > - printk(KERN_INFO "fusb300_ep0setup\n"); > + pr_info("fusb300_ep0setup\n"); > if (setup_packet(fusb300, &ctrl)) { > spin_unlock(&fusb300->lock); > if (fusb300->driver->setup(&fusb300->gadget, &ctrl) < 0) > @@ -1209,16 +1209,16 @@ static irqreturn_t fusb300_irq(int irq, void *_fusb300) > } > > if (int_grp1 & FUSB300_IGR1_CX_CMDEND_INT) > - printk(KERN_INFO "fusb300_cmdend\n"); > + pr_info("fusb300_cmdend\n"); > > > if (int_grp1 & FUSB300_IGR1_CX_OUT_INT) { > - printk(KERN_INFO "fusb300_cxout\n"); > + pr_info("fusb300_cxout\n"); > fusb300_ep0out(fusb300); > } > > if (int_grp1 & FUSB300_IGR1_CX_IN_INT) { > - printk(KERN_INFO "fusb300_cxin\n"); > + pr_info("fusb300_cxin\n"); > fusb300_ep0in(fusb300); > } > > diff --git a/drivers/usb/gadget/udc/goku_udc.c b/drivers/usb/gadget/udc/goku_udc.c > index 3e1267d38774..4f225552861a 100644 > --- a/drivers/usb/gadget/udc/goku_udc.c > +++ b/drivers/usb/gadget/udc/goku_udc.c > @@ -1748,7 +1748,7 @@ static int goku_probe(struct pci_dev *pdev, const struct pci_device_id *id) > int retval; > > if (!pdev->irq) { > - printk(KERN_ERR "Check PCI %s IRQ setup!\n", pci_name(pdev)); > + pr_err("Check PCI %s IRQ setup!\n", pci_name(pdev)); When a pointer to a struct device is available, dev_err() would be much better. That's however out of scope for this patch, but it would be nice to address it. This would become dev_err(&pdev->dev, "Check IRQ setup!\n"); Reviewed-by: Laurent Pinchart > retval = -ENODEV; > goto err; > } > diff --git a/drivers/usb/gadget/udc/r8a66597-udc.h b/drivers/usb/gadget/udc/r8a66597-udc.h > index 9a115caba661..fa4d62c32ea1 100644 > --- a/drivers/usb/gadget/udc/r8a66597-udc.h > +++ b/drivers/usb/gadget/udc/r8a66597-udc.h > @@ -247,7 +247,7 @@ static inline u16 get_xtal_from_pdata(struct r8a66597_platdata *pdata) > clock = XTAL48; > break; > default: > - printk(KERN_ERR "r8a66597: platdata clock is wrong.\n"); > + pr_err("r8a66597: platdata clock is wrong.\n"); > break; > } > -- Regards, Laurent Pinchart