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: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1369857112.22004.119.camel@joe-AO722>
Date:	Wed, 29 May 2013 12:51:52 -0700
From:	Joe Perches <joe@...ches.com>
To:	Alan Stern <stern@...land.harvard.edu>
Cc:	Takashi Iwai <tiwai@...e.de>, alsa-devel@...a-project.org,
	Kernel development list <linux-kernel@...r.kernel.org>
Subject: Re: Improving or replacing snd_printk()

On Wed, 2013-05-29 at 15:27 -0400, Alan Stern wrote:
> Has there been any thought of improving snd_printk(), or even better,
> changing the call sites to use the dev_*() routines instead?

Perhaps better would be to add and use some combination of
type specific logging message functions/macros like:

void snd_<level>(const struct snd_device *dev, const char *fmt, ...)
void snd_card_<level>(const struct snd_card *card, const char *fmt, ...)
void snd_ac97_<level>(const struct snd_ac97 *ac97, const char *fmt, ...)

allowing NULL as the type pointer when necessary/appropriate.

--
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