lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Wed, 04 Aug 2010 00:33:42 -0700
From:	Joe Perches <joe@...ches.com>
To:	Dmitry Torokhov <dmitry.torokhov@...il.com>
Cc:	linux-input <linux-input@...r.kernel.org>,
	LKML <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH 2.6.37? ] drivers/input: Use pr_<level>

On Tue, 2010-08-03 at 21:32 -0700, Dmitry Torokhov wrote:
> Hi Joe,

Hi Dmitry.

> On Tue, Aug 03, 2010 at 11:40:50AM -0700, Joe Perches wrote:
> > Remove prefixes from printks and convert to pr_fmt/pr_<level>.
> Thanks for doing this, however instead of using pr_xxx() I'd like
> drivers that are integrated in driver model (serio, usb, gameport, etc,
> i.e. when we have 'struct device' available, exept for psmouse) to use
> drv_xxx() instead.

These files?
$ grep -rPl --include=*.[ch] "\bstruct\s+device\b" drivers/input | \
  xargs grep -wl pr_fmt
drivers/input/keyboard/omap-keypad.c
drivers/input/mousedev.c
drivers/input/serio/serio.c
drivers/input/serio/i8042.c
drivers/input/evdev.c
drivers/input/joydev.c
drivers/input/gameport/gameport.c
drivers/input/touchscreen/htcpen.c
drivers/input/input-polldev.c
drivers/input/input.c
drivers/input/tablet/aiptek.c
drivers/input/misc/winbond-cir.c
drivers/input/misc/yealink.c
drivers/input/misc/ati_remote2.c
drivers/input/misc/wistron_btns.c
drivers/input/misc/ati_remote.c
drivers/input/mouse/psmouse-base.c
  
> That would make synaptics messages to come as "psmouse", right?

Yes.

> I think we should use
> 	#define pr_fmt(fmt) "synaptics: " fmt
> here and in the rest of specialized PS/2 protocol handlers.

Perhaps convert to what elantech uses
#define pr_fmt(fmt) KBUILD_BASENAME ": " fmt

$ grep -l "define pr_fmt" drivers/input/mouse/*.[ch] | \
  xargs grep -il "ps2" 
drivers/input/mouse/alps.c
drivers/input/mouse/elantech.c
drivers/input/mouse/lifebook.c
drivers/input/mouse/logips2pp.c
drivers/input/mouse/psmouse-base.c
drivers/input/mouse/sentelic.c
drivers/input/mouse/synaptics.c
drivers/input/mouse/trackpoint.c

Which ones do you want converted? 
Any others?

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ