From patchwork Mon Sep 28 15:03:57 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Filipe Rosset X-Patchwork-Id: 50402 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n8SF3o3K030256 for ; Mon, 28 Sep 2009 15:04:09 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752080AbZI1PEE (ORCPT ); Mon, 28 Sep 2009 11:04:04 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751878AbZI1PED (ORCPT ); Mon, 28 Sep 2009 11:04:03 -0400 Received: from mail-yw0-f174.google.com ([209.85.211.174]:64271 "EHLO mail-yw0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751400AbZI1PED (ORCPT ); Mon, 28 Sep 2009 11:04:03 -0400 Received: by ywh4 with SMTP id 4so4737761ywh.33 for ; Mon, 28 Sep 2009 08:04:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id :disposition-notification-to:date:from:reply-to:user-agent :mime-version:to:cc:subject:x-enigmail-version:content-type; bh=m1QdNKrahzdK5gQFWWR+HQVGndYaB+yrlRbt5jKVDBM=; b=Sm6VfSBieIjTT9wkEaFIh84iR4VUcOnK7NWQe5vzLxYM/s3q8njUqcN2RIlVQewCTT Dtbux5Qxsrgv8XzIMiHq0HM/j0c1OPa6uPtfF0tNY8gT7HaRd0WN/msV3gzrCK1JpuTI ZWpaXIusL0MJGk3uX8momr2KkOIVuMGHsa0Ow= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:disposition-notification-to:date:from:reply-to :user-agent:mime-version:to:cc:subject:x-enigmail-version :content-type; b=txOInK6ZXL7CBQHtu1J7Nod03k1CdJpvS+tRpfwiIT1TobID3qjiC05yXpnhvJ8Nmk 3ihCoMDiKt6D2Q2Z13sqjjkmg6lHXp9KC3Rma3gB37z2L+M0QdMEy6+lYg+TjZNsKpsN 19/FFvN6+H0JN23ZzcGQeLiBT0uQ7wsd68fT8= Received: by 10.100.81.1 with SMTP id e1mr3101294anb.73.1254150246275; Mon, 28 Sep 2009 08:04:06 -0700 (PDT) Received: from ?192.168.1.26? (200-102-97-88.cslce701.dsl.brasiltelecom.net.br [200.102.97.88]) by mx.google.com with ESMTPS id b37sm313354ana.0.2009.09.28.08.04.01 (version=SSLv3 cipher=RC4-MD5); Mon, 28 Sep 2009 08:04:05 -0700 (PDT) Message-ID: <4AC0D05D.4060304@gmail.com> Date: Mon, 28 Sep 2009 12:03:57 -0300 From: Filipe Rosset Reply-To: rosset.filipe@gmail.com User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.4pre) Gecko/20090922 Fedora/3.0-2.7.b4.fc11 Lightning/1.0pre Thunderbird/3.0b4 MIME-Version: 1.0 To: linux-media@vger.kernel.org CC: Douglas Schilling Landgraf , Mauro Carvalho Chehab Subject: [PATCH 2/2] em28xx: Convert printks to em28xx_err and em28xx_info X-Enigmail-Version: 0.97a Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org em28xx: Convert printks to em28xx_err and em28xx_info From: Filipe Rosset Convert printks to em28xx_err and em28xx_info Priority: normal Signed-off-by: Filipe Rosset diff -r cbf8899e0fd4 linux/drivers/media/video/em28xx/em28xx-dvb.c --- a/linux/drivers/media/video/em28xx/em28xx-dvb.c Mon Sep 28 11:22:23 2009 -0300 +++ b/linux/drivers/media/video/em28xx/em28xx-dvb.c Mon Sep 28 11:52:23 2009 -0300 @@ -314,7 +314,7 @@ cfg.i2c_addr = addr; if (!dev->dvb->frontend) { - printk(KERN_ERR "%s/2: dvb frontend not attached. " + em28xx_err("%s/2: dvb frontend not attached. " "Can't attach xc3028\n", dev->name); return -EINVAL; @@ -322,14 +322,14 @@ fe = dvb_attach(xc2028_attach, dev->dvb->frontend, &cfg); if (!fe) { - printk(KERN_ERR "%s/2: xc3028 attach failed\n", + em28xx_err("%s/2: xc3028 attach failed\n", dev->name); dvb_frontend_detach(dev->dvb->frontend); dev->dvb->frontend = NULL; return -EINVAL; } - printk(KERN_INFO "%s/2: xc3028 attached\n", dev->name); + em28xx_info("%s/2: xc3028 attached\n", dev->name); return 0; } @@ -464,7 +464,7 @@ dvb = kzalloc(sizeof(struct em28xx_dvb), GFP_KERNEL); if (dvb == NULL) { - printk(KERN_INFO "em28xx_dvb: memory allocation failed\n"); + em28xx_info("em28xx_dvb: memory allocation failed\n"); return -ENOMEM; } dev->dvb = dvb; @@ -570,14 +570,13 @@ } break; default: - printk(KERN_ERR "%s/2: The frontend of your DVB/ATSC card" + em28xx_err("%s/2: The frontend of your DVB/ATSC card" " isn't supported yet\n", dev->name); break; } if (NULL == dvb->frontend) { - printk(KERN_ERR - "%s/2: frontend initialization failed\n", + em28xx_err("%s/2: frontend initialization failed\n", dev->name); result = -EINVAL; goto out_free; @@ -592,7 +591,7 @@ goto out_free; em28xx_set_mode(dev, EM28XX_SUSPEND); - printk(KERN_INFO "Successfully loaded em28xx-dvb\n"); + em28xx_info("Successfully loaded em28xx-dvb\n"); return 0; out_free: