From patchwork Fri Nov 15 16:10:06 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shuah Khan X-Patchwork-Id: 3188771 Return-Path: X-Original-To: patchwork-linux-pm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 18240C045B for ; Fri, 15 Nov 2013 16:10:22 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E421520948 for ; Fri, 15 Nov 2013 16:10:20 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E46992095B for ; Fri, 15 Nov 2013 16:10:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753086Ab3KOQKO (ORCPT ); Fri, 15 Nov 2013 11:10:14 -0500 Received: from qmta10.emeryville.ca.mail.comcast.net ([76.96.30.17]:46167 "EHLO qmta10.emeryville.ca.mail.comcast.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753068Ab3KOQKN (ORCPT ); Fri, 15 Nov 2013 11:10:13 -0500 Received: from omta24.emeryville.ca.mail.comcast.net ([76.96.30.92]) by qmta10.emeryville.ca.mail.comcast.net with comcast id ps0m1m0011zF43QAAsAC0Q; Fri, 15 Nov 2013 16:10:12 +0000 Received: from mail.gonehiking.org ([50.134.149.16]) by omta24.emeryville.ca.mail.comcast.net with comcast id psAA1m00Y0MU7Qa8ksABdE; Fri, 15 Nov 2013 16:10:12 +0000 Received: from orthanc.internal (orthanc.internal [192.168.1.24]) by mail.gonehiking.org (Postfix) with ESMTP id 897EB80028; Fri, 15 Nov 2013 09:10:15 -0700 (MST) From: Shuah Khan To: len.brown@intel.com, pavel@ucw.cz, gregkh@linuxfoundation.org, rjw@rjwysocki.net Cc: Shuah Khan , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, shuahkhan@gmail.com Subject: [PATCH] power: Replace printks with pr_* routines Date: Fri, 15 Nov 2013 09:10:06 -0700 Message-Id: <1384531806-11500-1-git-send-email-shuah.kh@samsung.com> X-Mailer: git-send-email 1.8.3.2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20121106; t=1384531812; bh=ysq0svQXNll27bZ/QyJlMepb03bnPXxWHsYFyIH/wY8=; h=Received:Received:Received:From:To:Subject:Date:Message-Id; b=OoQDm4skHbC5btSBBwMsQs5+lB1fqxcvzmBKCktTGjfTSvD5BXB6z/K7a363qNtoc BpCX/nL9+t30DDXAd1tXV2MxoJ+GfjuAIaxwwWh5R74eodxBfva30hLKiCbmElJjCK cQmSBxu34cFVLqlmsKLrXgTld73dBcph8ShlIIjZEvgof+9ktKWrD2wpxoRSDEkjvC 8z78C65NUCD1mOPNyjaWxx4eYGuYksXCFMq56CrBMvxP2G+MwnObwJzzLImyyt8mKa mPSvdGRbSmF9IuaJoa+upL0Zu8TgehORhuuWWYrJQ7GkiZ6UtBWgVy6EG7a4WWzfKI zfbL5gipQirGw== Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Replaced printks with pr_* routines. dev_* routines could have been used, but chose to use pr_* to avoid breaking scripts that might be relying on a specific text. Signed-off-by: Shuah Khan --- drivers/base/power/main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/base/power/main.c b/drivers/base/power/main.c index 9f098a8..43d5dcf 100644 --- a/drivers/base/power/main.c +++ b/drivers/base/power/main.c @@ -349,7 +349,7 @@ static void pm_dev_dbg(struct device *dev, pm_message_t state, char *info) static void pm_dev_err(struct device *dev, pm_message_t state, char *info, int error) { - printk(KERN_ERR "PM: Device %s failed to %s%s: error %d\n", + pr_err("PM: Device %s failed to %s%s: error %d\n", dev_name(dev), pm_verb(state.event), info, error); } @@ -1308,7 +1308,7 @@ int dpm_prepare(pm_message_t state) error = 0; continue; } - printk(KERN_INFO "PM: Device %s not prepared " + pr_info("PM: Device %s not prepared " "for power transition: code %d\n", dev_name(dev), error); put_device(dev); @@ -1347,7 +1347,7 @@ EXPORT_SYMBOL_GPL(dpm_suspend_start); void __suspend_report_result(const char *function, void *fn, int ret) { if (ret) - printk(KERN_ERR "%s(): %pF returns %d\n", function, fn, ret); + pr_err("%s(): %pF returns %d\n", function, fn, ret); } EXPORT_SYMBOL_GPL(__suspend_report_result);