Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755579Ab0FTQx4 (ORCPT ); Sun, 20 Jun 2010 12:53:56 -0400 Received: from mail.perches.com ([173.55.12.10]:1226 "EHLO mail.perches.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754524Ab0FTQxy (ORCPT ); Sun, 20 Jun 2010 12:53:54 -0400 Subject: Re: [PATCH] drivers/media/IR/imon.c: Use pr_err instead of err From: Joe Perches To: Jarod Wilson Cc: Mauro Carvalho Chehab , linux-media , LKML In-Reply-To: <16004456-69D9-41BD-8597-5590BB7B099E@wilsonet.com> References: <1277018446.1548.66.camel@Joe-Laptop.home> <16004456-69D9-41BD-8597-5590BB7B099E@wilsonet.com> Content-Type: text/plain; charset="UTF-8" Date: Sun, 20 Jun 2010 09:53:51 -0700 Message-ID: <1277052831.1548.103.camel@Joe-Laptop.home> Mime-Version: 1.0 X-Mailer: Evolution 2.28.3 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1091 Lines: 27 On Sun, 2010-06-20 at 11:58 -0400, Jarod Wilson wrote: > On Jun 20, 2010, at 3:20 AM, Joe Perches wrote: > Use the standard error logging mechanisms. > > Add #define pr_fmt(fmt) KBUILD_MODNAME ":%s" fmt, __func__ > > Remove __func__ from err calls, add '\n', rename to pr_err > Eh. If we're going to make a change here, I'd rather it be to using > dev_err instead, since most of the other spew in this driver uses > similar. The idea is to eventually remove info/err/warn from usb.h by changing the code outside of drivers/usb first. There will always be some mix of printk or pr_ along with dev_ because struct device * is NULL or as is mostly used here there's no struct imon_context * available. I suggest you have a look and see which ones of these changes could use dev_ instead. cheers, Joe -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/