Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* wrong print debugging message code
@ 2008-06-21  5:44 Jin-Young Park
  2008-06-23 10:55 ` Takashi Iwai
  0 siblings, 1 reply; 8+ messages in thread
From: Jin-Young Park @ 2008-06-21  5:44 UTC (permalink / raw)
  To: alsa-devel

Hello,

I written ASoC Audio driver for our company chip in linux kernel 2.6.24.1.
New kernel 2.6.25.7 released before several days.
So, I merge my ASoC Audio dirver to kernel 2.6.25.7.
then I found wrong code that print debuuging message code in several files.
These file location is kernel_src/sound/soc/codecs for SoC audio codec
drvier files

These files include follow define code for print debug message.

------------------------------------------------------------------------------------------------------------------------
#define XXXX_DEBUG 0

#ifdef XXXX_DEBUG
#define dbg(format, arg...) \
        printk(KERN_DEBUG AUDIO_NAME ": " format "\n" , ## arg)
#else
#define dbg(format, arg...) do {} while (0)
#endif
------------------------------------------------------------------------------------------------------------------------

I think "#ifdef XXXX_DEBUG" line is wrong. Because, XXXX_DEBUG was already
defined 0.
I known that "#ifdef" is only check defined or not defined, 0 or 1(false or
true) are not check.
"#if XXXX_DEBUG" code is more correct than "#ifdef XXXX_DEBUG".

thanks

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2008-06-24  5:55 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-21  5:44 wrong print debugging message code Jin-Young Park
2008-06-23 10:55 ` Takashi Iwai
2008-06-23 11:12   ` Mark Brown
2008-06-23 12:13     ` Takashi Iwai
2008-06-23 12:17       ` Mark Brown
2008-06-23 18:18   ` Jin-Young Park
2008-06-23 18:51     ` Mark Brown
2008-06-24  5:55       ` Jin-Young Park

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox