Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932238AbZGOTGR (ORCPT ); Wed, 15 Jul 2009 15:06:17 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932224AbZGOTGQ (ORCPT ); Wed, 15 Jul 2009 15:06:16 -0400 Received: from sg2ehsobe003.messaging.microsoft.com ([207.46.51.77]:39478 "EHLO SG2EHSOBE003.bigfish.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932226AbZGOTGQ convert rfc822-to-8bit (ORCPT ); Wed, 15 Jul 2009 15:06:16 -0400 X-SpamScore: -23 X-BigFish: VS-23(zba6lz1432R98dN936eM9371Pzz1202h10c0jzzz2dh87h6bh61h) X-Spam-TCS-SCL: 0:0 X-FB-DOMAIN-IP-MATCH: fail Message-ID: <4A5E2895.3040907@am.sony.com> Date: Wed, 15 Jul 2009 12:05:57 -0700 From: Frank Rowand Reply-To: frank.rowand@am.sony.com User-Agent: Thunderbird 2.0.0.9 (X11/20071115) MIME-Version: 1.0 To: Pavel Machek CC: Joe Perches , =?UTF-8?B?QXJ2ZSBIasO4bm5ldsOlZw==?= , Brian Swetland , kernel list Subject: Re: HTC: touchscreen driver References: <20090710084323.GA6522@elf.ucw.cz> <20090710103243.GB7789@elf.ucw.cz> <20090713202302.GC2569@elf.ucw.cz> <20090713205749.GE2569@elf.ucw.cz> <20090713220726.GA28375@elf.ucw.cz> <1247535863.16528.6.camel@Joe-Laptop.home> In-Reply-To: <1247535863.16528.6.camel@Joe-Laptop.home> Content-Type: text/plain; charset="UTF-8" X-OriginalArrivalTime: 15 Jul 2009 19:06:02.0062 (UTC) FILETIME=[4B967EE0:01CA057F] X-SEL-encryption-scan: scanned Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 964 Lines: 28 Joe Perches wrote: > On Mon, 2009-07-13 at 18:29 -0700, Arve Hjønnevåg wrote: >> On Mon, Jul 13, 2009 at 3:07 PM, Pavel Machek wrote: >>> - printk(KERN_ERR "synaptics_ts_work_func: i2c_transfer failed\n"); >>> + printk(KERN_ERR "ts_work: i2c_transfer failed\n"); >> This will make it harder to read the kernel logs since the driver is >> no longer specified. > > How about converting to: > > #define pr_fmt(fmt) KBUILD_MODNAME ":%s: " fmt, __func__ > or > #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt > > and pr_() dev_printk() and the related helpers in include/linux/device.h might also be useful. -Frank Rowand --- Sony Corporation of America -- 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/