ALSA: hda - hide HDMI/ELD printks unless snd.debug=2
Also remove two warnings when CONFIG_SND_DEBUG is not set: sound/pci/hda/patch_hdmi.c: In function ‘hdmi_intrinsic_event’: sound/pci/hda/patch_hdmi.c:761:6: warning: unused variable ‘eldv’ [-Wunused-variable] sound/pci/hda/patch_hdmi.c:760:6: warning: unused variable ‘pd’ [-Wunused-variable] Signed-off-by: Wu Fengguang <fengguang.wu@intel.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
38be95dd3d
commit
fae3d88a5c
3 changed files with 17 additions and 8 deletions
|
@ -325,6 +325,13 @@ void release_and_free_resource(struct resource *res);
|
|||
|
||||
/* --- */
|
||||
|
||||
/* sound printk debug levels */
|
||||
enum {
|
||||
SND_PR_ALWAYS,
|
||||
SND_PR_DEBUG,
|
||||
SND_PR_VERBOSE,
|
||||
};
|
||||
|
||||
#if defined(CONFIG_SND_DEBUG) || defined(CONFIG_SND_VERBOSE_PRINTK)
|
||||
__printf(4, 5)
|
||||
void __snd_printk(unsigned int level, const char *file, int line,
|
||||
|
@ -354,6 +361,8 @@ void __snd_printk(unsigned int level, const char *file, int line,
|
|||
*/
|
||||
#define snd_printd(fmt, args...) \
|
||||
__snd_printk(1, __FILE__, __LINE__, fmt, ##args)
|
||||
#define _snd_printd(level, fmt, args...) \
|
||||
__snd_printk(level, __FILE__, __LINE__, fmt, ##args)
|
||||
|
||||
/**
|
||||
* snd_BUG - give a BUG warning message and stack trace
|
||||
|
@ -383,6 +392,7 @@ void __snd_printk(unsigned int level, const char *file, int line,
|
|||
#else /* !CONFIG_SND_DEBUG */
|
||||
|
||||
#define snd_printd(fmt, args...) do { } while (0)
|
||||
#define _snd_printd(level, fmt, args...) do { } while (0)
|
||||
#define snd_BUG() do { } while (0)
|
||||
static inline int __snd_bug_on(int cond)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue