From patchwork Thu Nov 15 03:43:29 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 12850 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 B0DF223E12 for ; Thu, 15 Nov 2012 03:49:33 +0000 (UTC) Received: from mail-ia0-f180.google.com (mail-ia0-f180.google.com [209.85.210.180]) by fiordland.canonical.com (Postfix) with ESMTP id 4EF6EA1885B for ; Thu, 15 Nov 2012 03:49:33 +0000 (UTC) Received: by mail-ia0-f180.google.com with SMTP id f6so742512iag.11 for ; Wed, 14 Nov 2012 19:49:32 -0800 (PST) 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=9vY67m+C3kRoAAHSwC/Lw/d23jMWnolUrqpE/Mcl38o=; b=Yzn5oIXTFI6JzW+O+n0MUzndWVO12TG0e/iBaQLLO8V5EV+W/hAu7lkVyfOQ3/xPQm OlzRGnsKBH5jek1MuWW8k+6dPZl5TtF4PESEd3qTLMXAJKWvlHypJ9lj1Q4nkkFk01xn T3AD7cYyoSX5uDwKAROHLOhzMpN+/S4lcVQe/CZVdH/cDzyxiNd4iPW5pPvwWs5eBNGw 9RL1BwQ4zNAUjynK8aPzS7wxgPJS4fX95ppQeQor75leMDZv9MEds2FNBFpRxgQroUG8 +GdgqJ1hw4kwAA18sQUqtOCojV1VLEIOLAj5cNXA0R2eMHRem9Oirn5UE8oGBV52kgHB fzVA== Received: by 10.50.173.34 with SMTP id bh2mr1198042igc.70.1352951372750; Wed, 14 Nov 2012 19:49:32 -0800 (PST) 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.67.148 with SMTP id n20csp766007igt; Wed, 14 Nov 2012 19:49:32 -0800 (PST) Received: by 10.66.85.66 with SMTP id f2mr3911212paz.56.1352951371956; Wed, 14 Nov 2012 19:49:31 -0800 (PST) Received: from mail-da0-f50.google.com (mail-da0-f50.google.com [209.85.210.50]) by mx.google.com with ESMTPS id sh10si20840728pbb.293.2012.11.14.19.49.31 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 14 Nov 2012 19:49:31 -0800 (PST) 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-da0-f50.google.com with SMTP id z20so525080dae.23 for ; Wed, 14 Nov 2012 19:49:31 -0800 (PST) Received: by 10.68.200.38 with SMTP id jp6mr491499pbc.131.1352951371723; Wed, 14 Nov 2012 19:49:31 -0800 (PST) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id jw10sm8782970pbb.20.2012.11.14.19.49.29 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 14 Nov 2012 19:49:31 -0800 (PST) From: Sachin Kamat To: dri-devel@lists.freedesktop.org Cc: airlied@linux.ie, airlied@gmail.com, sachin.kamat@linaro.org, patches@linaro.org Subject: [PATCH 2/3] drm/fb_helper: Convert printk to pr_* and dev_* Date: Thu, 15 Nov 2012 09:13:29 +0530 Message-Id: <1352951010-25393-3-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1352951010-25393-1-git-send-email-sachin.kamat@linaro.org> References: <1352951010-25393-1-git-send-email-sachin.kamat@linaro.org> X-Gm-Message-State: ALoCoQmgfzS9euqF5UK6s82ntlzOug4aLzYURjI300Ay7DGbR6bJmQVcUzssuSUfkgRXSuM6ajBZ Converted printks to pr_* and dev_* to silence checkpatch warnings. Signed-off-by: Sachin Kamat --- drivers/gpu/drm/drm_fb_helper.c | 14 ++++++++------ 1 files changed, 8 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/drm_fb_helper.c b/drivers/gpu/drm/drm_fb_helper.c index 9b60e93..07cba5a 100644 --- a/drivers/gpu/drm/drm_fb_helper.c +++ b/drivers/gpu/drm/drm_fb_helper.c @@ -27,6 +27,8 @@ * Dave Airlie * Jesse Barnes */ +#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt + #include #include #include @@ -271,7 +273,7 @@ int drm_fb_helper_panic(struct notifier_block *n, unsigned long ununsed, if (panic_timeout < 0) return 0; - printk(KERN_ERR "panic occurred, switching back to text console\n"); + pr_err("panic occurred, switching back to text console\n"); return drm_fb_helper_force_kernel_mode(); } EXPORT_SYMBOL(drm_fb_helper_panic); @@ -439,7 +441,7 @@ void drm_fb_helper_fini(struct drm_fb_helper *fb_helper) if (!list_empty(&fb_helper->kernel_fb_list)) { list_del(&fb_helper->kernel_fb_list); if (list_empty(&kernel_fb_helper_list)) { - printk(KERN_INFO "drm: unregistered panic notifier\n"); + pr_info("drm: unregistered panic notifier\n"); atomic_notifier_chain_unregister(&panic_notifier_list, &paniced); unregister_sysrq_key('v', &sysrq_drm_fb_helper_restore_op); @@ -810,8 +812,8 @@ int drm_fb_helper_single_fb_probe(struct drm_fb_helper *fb_helper, return -EINVAL; } - printk(KERN_INFO "fb%d: %s frame buffer device\n", info->node, - info->fix.id); + dev_info(fb_helper->dev->dev, "fb%d: %s frame buffer device\n", + info->node, info->fix.id); } else { drm_fb_helper_set_par(info); @@ -820,7 +822,7 @@ int drm_fb_helper_single_fb_probe(struct drm_fb_helper *fb_helper, /* Switch back to kernel console on panic */ /* multi card linked list maybe */ if (list_empty(&kernel_fb_helper_list)) { - printk(KERN_INFO "drm: registered panic notifier\n"); + dev_info(fb_helper->dev->dev, "registered panic notifier\n"); atomic_notifier_chain_register(&panic_notifier_list, &paniced); register_sysrq_key('v', &sysrq_drm_fb_helper_restore_op); @@ -1326,7 +1328,7 @@ bool drm_fb_helper_initial_config(struct drm_fb_helper *fb_helper, int bpp_sel) * we shouldn't end up with no modes here. */ if (count == 0) { - printk(KERN_INFO "No connectors reported connected with modes\n"); + dev_info(fb_helper->dev->dev, "No connectors reported connected with modes\n"); } drm_setup_crtcs(fb_helper);