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: 1747651 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by patchwork1.kernel.org (Postfix) with ESMTP id 605663FC64 for ; Thu, 15 Nov 2012 08:50:46 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 537C29E918 for ; Thu, 15 Nov 2012 00:50:46 -0800 (PST) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-pa0-f49.google.com (mail-pa0-f49.google.com [209.85.220.49]) by gabe.freedesktop.org (Postfix) with ESMTP id E41C29E746 for ; Wed, 14 Nov 2012 19:49:31 -0800 (PST) Received: by mail-pa0-f49.google.com with SMTP id bi5so741400pad.36 for ; Wed, 14 Nov 2012 19:49:31 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references :x-gm-message-state; bh=9vY67m+C3kRoAAHSwC/Lw/d23jMWnolUrqpE/Mcl38o=; b=Sr5edpOs0QoylGUFkCyEMIb0hooNSM0K0tMKjrYAfQ7+pHMgG5x3BIooHoJbENnOOf aqGcckeCUE0u5TCs48IQX0lY0SvBP1BpNYleszb6w71yyprkbAUJT2CgSmXXuqBIHFSH T/nhmekzEXvB3pi+J6XRPTeOZl0V/01KQ08KuBKA6s8ESSbZX1ASwnujSCNZ2+Z+zrOv b7C2DSYAyfxJrOi33T2INd8fi9MIr+5Zvj0nsxRnvkIGlUnBbnNPlN2mlD92r7gclULO eESCSMOBy2la4s9jJsyHX73H5lJxFgfnIqnaubvK9Kc41X1k86W55HEFCZM0Knz1KF6q xNtw== 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 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: ALoCoQmPZ9XEqEZxoo3e1IKjVOiIy9lsIzVAwvwTW+uBqBNb+pZB0DKAdHSDdX/e0Y3aNbDxldjg X-Mailman-Approved-At: Thu, 15 Nov 2012 00:48:50 -0800 Cc: sachin.kamat@linaro.org, patches@linaro.org X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: dri-devel-bounces+patchwork-dri-devel=patchwork.kernel.org@lists.freedesktop.org Errors-To: dri-devel-bounces+patchwork-dri-devel=patchwork.kernel.org@lists.freedesktop.org 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);