From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757505AbcG1TDk (ORCPT ); Thu, 28 Jul 2016 15:03:40 -0400 Received: from mail-pf0-f195.google.com ([209.85.192.195]:34726 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754969AbcG1TDh (ORCPT ); Thu, 28 Jul 2016 15:03:37 -0400 User-Agent: K-9 Mail for Android In-Reply-To: <1469732309.3998.71.camel@perches.com> References: <1469699935-23056-1-git-send-email-benjamin.tissoires@redhat.com> <1469730656.3998.63.camel@perches.com> <20160728184003.GE16852@dtor-ws> <1469731797.3998.69.camel@perches.com> <20160728185409.GG16852@dtor-ws> <1469732309.3998.71.camel@perches.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Subject: Re: [PATCH] Input - elantech: fix debug dump of the current packet From: Dmitry Torokhov Date: Thu, 28 Jul 2016 12:03:33 -0700 To: Joe Perches CC: Benjamin Tissoires , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Message-ID: <69E215A7-E962-47FB-8735-208972CBAA65@gmail.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On July 28, 2016 11:58:29 AM PDT, Joe Perches wrote: >On Thu, 2016-07-28 at 11:54 -0700, Dmitry Torokhov wrote: >> On Thu, Jul 28, 2016 at 11:49:57AM -0700, Joe Perches wrote: >[] >> > So use dev_printk(KERN_DEBUG, etc... >> #define psmouse_printk(level, psmouse, format, ...) \ >> dev_printk(level, \ >>    &(psmouse)->ps2dev.serio->dev, \ >>    psmouse_fmt(format), ##__VA_ARGS__) >> >> I want to see current protocol module in th eoutput and I do not want >to >> write "&(psmouse)->ps2dev.serio->dev" all the time. > >There are only 2 uses of the macro. > >$ git grep psmouse_printk >drivers/input/mouse/elantech.c:                 psmouse_printk(KERN_DEBUG, >psmouse,             \ >drivers/input/mouse/elantech.c: psmouse_printk(KERN_DEBUG, psmouse, >"PS/2 packet ["); >drivers/input/mouse/psmouse.h:#define psmouse_printk(level, psmouse, >format, ...)       \ Yes, but many more of psmouse_ calls and I like consistency. Thanks. -- Dmitry