From patchwork Mon Aug 25 13:34:52 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sudip Mukherjee X-Patchwork-Id: 4774921 Return-Path: X-Original-To: patchwork-alsa-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id D80269F2A9 for ; Mon, 25 Aug 2014 13:35:33 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 143562012D for ; Mon, 25 Aug 2014 13:35:33 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id 7638F2012B for ; Mon, 25 Aug 2014 13:35:31 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 90A2D2650F2; Mon, 25 Aug 2014 15:35:29 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Level: X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=no version=3.3.1 Received: from alsa0.perex.cz (localhost [IPv6:::1]) by alsa0.perex.cz (Postfix) with ESMTP id 79A7B2650C2; Mon, 25 Aug 2014 15:35:18 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id 5DF682650C3; Mon, 25 Aug 2014 15:35:16 +0200 (CEST) Received: from mail-pa0-f54.google.com (mail-pa0-f54.google.com [209.85.220.54]) by alsa0.perex.cz (Postfix) with ESMTP id 2487B2650C0 for ; Mon, 25 Aug 2014 15:35:08 +0200 (CEST) Received: by mail-pa0-f54.google.com with SMTP id fa1so21147205pad.13 for ; Mon, 25 Aug 2014 06:35:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=FFqMMUbcWE7uEfZ8joK/MVV4K1Jel8XpWTOlgWyf6SU=; b=hLvTARDpyhbrIl5PEnukTC6kXCMCPOOEIkGbOS9KexpSZtSo7EKmRw7RCUhW++wSRe W/T5vj5z+FV4Cc5OPeC4W09+TBQRLOA6BIDzfV51I69S4lwFfdMSyAolFP3vhVADnA4o ea//Opnoj5hPjr8J5cWkMXcFmSWUK7xHhwYJvXlUWaiAlXKDXS9avPXgWRzTNHfvQS7u 5VVrzawd+50LUg2QXZoGCNRdc6/pOsporaYF+De0oahfqnt/Jw1+8qNY8QgrfeLCpRAT OADBJGw1tQVEgmLYJEMjUznXRpVFHdo3Ds5Qr+qUvJu4bNC3uSbPSWx/8BUKbl9bslhU RkLg== X-Received: by 10.66.147.67 with SMTP id ti3mr28891115pab.2.1408973706696; Mon, 25 Aug 2014 06:35:06 -0700 (PDT) Received: from localhost.localdomain ([122.169.153.158]) by mx.google.com with ESMTPSA id rb7sm9509778pab.42.2014.08.25.06.35.03 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 25 Aug 2014 06:35:05 -0700 (PDT) From: Sudip Mukherjee To: Jaroslav Kysela , Takashi Iwai Date: Mon, 25 Aug 2014 19:04:52 +0530 Message-Id: <1408973692-22742-1-git-send-email-sudipm.mukherjee@gmail.com> X-Mailer: git-send-email 1.8.1.2 Cc: alsa-devel@alsa-project.org, Sudip Mukherjee , linux-kernel@vger.kernel.org Subject: [alsa-devel] [PATCH] sound: pci: ctxfi: ctpcm.c: printk replacement X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP replaced printk with corresponding pr_err Signed-off-by: Sudip Mukherjee --- sound/pci/ctxfi/ctpcm.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sound/pci/ctxfi/ctpcm.c b/sound/pci/ctxfi/ctpcm.c index e8a4feb..6826c2c 100644 --- a/sound/pci/ctxfi/ctpcm.c +++ b/sound/pci/ctxfi/ctpcm.c @@ -217,7 +217,7 @@ static int ct_pcm_playback_prepare(struct snd_pcm_substream *substream) err = atc->pcm_playback_prepare(atc, apcm); if (err < 0) { - printk(KERN_ERR "ctxfi: Preparing pcm playback failed!!!\n"); + pr_err("ctxfi: Preparing pcm playback failed!!!\n"); return err; } @@ -324,7 +324,7 @@ static int ct_pcm_capture_prepare(struct snd_pcm_substream *substream) err = atc->pcm_capture_prepare(atc, apcm); if (err < 0) { - printk(KERN_ERR "ctxfi: Preparing pcm capture failed!!!\n"); + pr_err("ctxfi: Preparing pcm capture failed!!!\n"); return err; } @@ -435,7 +435,7 @@ int ct_alsa_pcm_create(struct ct_atc *atc, err = snd_pcm_new(atc->card, "ctxfi", device, playback_count, capture_count, &pcm); if (err < 0) { - printk(KERN_ERR "ctxfi: snd_pcm_new failed!! Err=%d\n", err); + pr_err("ctxfi: snd_pcm_new failed!! Err=%d\n", err); return err; }