Prefix debug symbols with debug_ to reduce the namesapce pollution
This commit is contained in:
parent
7c03e4c57a
commit
5ee72eeeb1
|
@ -18,6 +18,6 @@
|
|||
#endif
|
||||
|
||||
void debugp(unsigned int subsys, char *file, int line, const char *format, ...);
|
||||
void parse_category_mask(const char* mask);
|
||||
void debug_parse_category_mask(const char* mask);
|
||||
|
||||
#endif /* _DEBUG_H */
|
||||
|
|
|
@ -57,7 +57,7 @@ static int use_color = 1;
|
|||
* Parse the category mask.
|
||||
* category1:category2:category3
|
||||
*/
|
||||
void parse_category_mask(const char *_mask)
|
||||
void debug_parse_category_mask(const char *_mask)
|
||||
{
|
||||
unsigned int new_mask = 0;
|
||||
int i = 0;
|
||||
|
|
|
@ -24,10 +24,10 @@
|
|||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
parse_category_mask("DRLL");
|
||||
debug_parse_category_mask("DRLL");
|
||||
DEBUGP(DCC, "You should not see this\n");
|
||||
|
||||
parse_category_mask("DRLL:DCC");
|
||||
debug_parse_category_mask("DRLL:DCC");
|
||||
DEBUGP(DRLL, "You should see this\n");
|
||||
DEBUGP(DCC, "You should see this\n");
|
||||
DEBUGP(DMM, "You should not see this\n");
|
||||
|
|
Loading…
Reference in New Issue