Prefix debug symbols with debug_ to reduce the namesapce pollution

This commit is contained in:
Holger Freyther 2008-12-27 12:46:49 +00:00
parent 7c03e4c57a
commit 5ee72eeeb1
3 changed files with 4 additions and 4 deletions

View File

@ -18,6 +18,6 @@
#endif #endif
void debugp(unsigned int subsys, char *file, int line, const char *format, ...); 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 */ #endif /* _DEBUG_H */

View File

@ -57,7 +57,7 @@ static int use_color = 1;
* Parse the category mask. * Parse the category mask.
* category1:category2:category3 * category1:category2:category3
*/ */
void parse_category_mask(const char *_mask) void debug_parse_category_mask(const char *_mask)
{ {
unsigned int new_mask = 0; unsigned int new_mask = 0;
int i = 0; int i = 0;

View File

@ -24,10 +24,10 @@
int main(int argc, char** argv) int main(int argc, char** argv)
{ {
parse_category_mask("DRLL"); debug_parse_category_mask("DRLL");
DEBUGP(DCC, "You should not see this\n"); 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(DRLL, "You should see this\n");
DEBUGP(DCC, "You should see this\n"); DEBUGP(DCC, "You should see this\n");
DEBUGP(DMM, "You should not see this\n"); DEBUGP(DMM, "You should not see this\n");