multiple use of symbol dbg in headers.

From: PAJANI Nathaël
Date: Mon Jun 21 2004 - 05:17:29 EST




Hi, I just tryed to see what is behind the "dbg" symbol in the 2.4.24 source
tree, and noticed it was used in different places, with different meanings. I
also checked 2.6.6 source tree, and part of the problem is still there.

Problem:
+ linux 2.4.24
in include/linux/usb.h
--> #define dbg(format, arg...) printk .......
--> #define dbg(format, arg...) do {} .......
and in include/linux/baycom.h
--> struct baycom_debug_data dbg;
and last in include/linux/soundmodem.h
--> struct sm_debug_data dbg;

+ linux 2.6.6
in include/linux/usb.h
--> #define dbg(format, arg...) printk .......
--> #define dbg(format, arg...) do {} .......
and in include/linux/baycom.h
--> struct baycom_debug_data dbg;

But no more occurence in soundmodem.h


This is no problem for me as I do not include all these files, just the usb.h
But this may be problem for others.

Solution may be to use usb_dbg instead of dbg in usb.h, as it has been done in
device.h and pnp.h

Bye.
I hope this will be usefull.

Nathaël PAJANI

nathael.pajani@xxxxxx

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/