From patchwork Wed Aug 22 05:43:16 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 10844 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id C68F523E37 for ; Wed, 22 Aug 2012 05:45:34 +0000 (UTC) Received: from mail-yx0-f180.google.com (mail-yx0-f180.google.com [209.85.213.180]) by fiordland.canonical.com (Postfix) with ESMTP id E441DA183F2 for ; Wed, 22 Aug 2012 05:45:23 +0000 (UTC) Received: by yenl8 with SMTP id l8so457938yen.11 for ; Tue, 21 Aug 2012 22:45:34 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:from:to:cc :subject:date:message-id:x-mailer:in-reply-to:references :x-gm-message-state; bh=otLYkzuLb4lppPpja/lzi5JaU5KiKZ0rDlsnqqXFXMU=; b=gKCRoEqzF1N8a8/Q8ZtBfbputX/gwOU8K3fDh1n9Z639x8w0mfeEJDt5nzkgOP40ZZ Br8+4nFaW9ew9sv3e/YYLChwwsSwUqL+drhw3rFKQnV15nY+GsfSPq1xl8mcp5v1nJ6m C9Kxxm+gcJi3ba0CPTRZdzYlhRXXuTDmIJuvIACWixRy20NaJhRON3bOetw4wXB3fvvV ut7JBCeCAsuHD85B8qL6O/r5/+yA/wMdaY2xnX3L2rHTBSDyUwdD6IpWqNIv3SfNn/s2 xqwirVXo7D67uqYgXtvQHdGIcei9ibX+90Xcp2gdu61X/zfmTt5vprOiiXaCjXfeiVdo dFOw== Received: by 10.50.159.196 with SMTP id xe4mr892664igb.43.1345614333424; Tue, 21 Aug 2012 22:45:33 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.50.184.232 with SMTP id ex8csp184129igc; Tue, 21 Aug 2012 22:45:32 -0700 (PDT) Received: by 10.68.227.169 with SMTP id sb9mr49708240pbc.104.1345614332760; Tue, 21 Aug 2012 22:45:32 -0700 (PDT) Received: from mail-pz0-f50.google.com (mail-pz0-f50.google.com [209.85.210.50]) by mx.google.com with ESMTPS id pv1si6360065pbb.359.2012.08.21.22.45.32 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 21 Aug 2012 22:45:32 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.210.50 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) client-ip=209.85.210.50; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.210.50 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) smtp.mail=sachin.kamat@linaro.org Received: by mail-pz0-f50.google.com with SMTP id e7so474410dad.37 for ; Tue, 21 Aug 2012 22:45:32 -0700 (PDT) Received: by 10.66.74.3 with SMTP id p3mr43530778pav.49.1345614332511; Tue, 21 Aug 2012 22:45:32 -0700 (PDT) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id os1sm2987450pbc.31.2012.08.21.22.45.29 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 21 Aug 2012 22:45:31 -0700 (PDT) From: Sachin Kamat To: linux-usb@vger.kernel.org Cc: gregkh@linuxfoundation.org, balbi@ti.com, sachin.kamat@linaro.org, patches@linaro.org Subject: [PATCH 2/5] usb: gadget: s3c2410_udc: Use pr_* functions Date: Wed, 22 Aug 2012 11:13:16 +0530 Message-Id: <1345614199-12181-3-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1345614199-12181-1-git-send-email-sachin.kamat@linaro.org> References: <1345614199-12181-1-git-send-email-sachin.kamat@linaro.org> X-Gm-Message-State: ALoCoQlieGZ0/2kqG1X7vwN0abw/XBh1ZXfC0swVIejZvw+YC5HcJbNbqCjYYfRD0ody8D4CJHrx Replace printk with corresponding pr_* functions. Signed-off-by: Sachin Kamat --- drivers/usb/gadget/s3c2410_udc.c | 12 +++++++----- 1 files changed, 7 insertions(+), 5 deletions(-) diff --git a/drivers/usb/gadget/s3c2410_udc.c b/drivers/usb/gadget/s3c2410_udc.c index 7acecc0..7e2ce44 100644 --- a/drivers/usb/gadget/s3c2410_udc.c +++ b/drivers/usb/gadget/s3c2410_udc.c @@ -12,6 +12,8 @@ * (at your option) any later version. */ +#define pr_fmt(fmt) "s3c2410_udc: " fmt + #include #include #include @@ -115,7 +117,7 @@ static int dprintk(int level, const char *fmt, ...) sizeof(printk_buf)-len, fmt, args); va_end(args); - return printk(KERN_DEBUG "%s", printk_buf); + return pr_debug("%s", printk_buf); } #else static int dprintk(int level, const char *fmt, ...) @@ -1683,13 +1685,13 @@ static int s3c2410_udc_start(struct usb_gadget_driver *driver, return -EBUSY; if (!bind || !driver->setup || driver->max_speed < USB_SPEED_FULL) { - printk(KERN_ERR "Invalid driver: bind %p setup %p speed %d\n", + pr_err("Invalid driver: bind %p setup %p speed %d\n", bind, driver->setup, driver->max_speed); return -EINVAL; } #if defined(MODULE) if (!driver->unbind) { - printk(KERN_ERR "Invalid driver: no unbind method\n"); + pr_err("Invalid driver: no unbind method\n"); return -EINVAL; } #endif @@ -1700,7 +1702,7 @@ static int s3c2410_udc_start(struct usb_gadget_driver *driver, /* Bind the driver */ if ((retval = device_add(&udc->gadget.dev)) != 0) { - printk(KERN_ERR "Error in device_add() : %d\n",retval); + pr_err("Error in device_add() : %d\n",retval); goto register_error; } @@ -2073,7 +2075,7 @@ static int __init udc_init(void) s3c2410_udc_debugfs_root = debugfs_create_dir(gadget_name, NULL); if (IS_ERR(s3c2410_udc_debugfs_root)) { - printk(KERN_ERR "%s: debugfs dir creation failed %ld\n", + pr_err("%s: debugfs dir creation failed %ld\n", gadget_name, PTR_ERR(s3c2410_udc_debugfs_root)); s3c2410_udc_debugfs_root = NULL; }