aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Freyther <zecke@selfish.org>2008-12-27 12:46:49 +0000
committerHolger Freyther <zecke@selfish.org>2008-12-27 12:46:49 +0000
commit5ee72eeeb1d513c5702c72e19ba6becd47d02158 (patch)
treea4862b140cabafe9593a9f2924ff6918411139e1
parent7c03e4c57a07c0772eb87c16ad46927e7230d9de (diff)
Prefix debug symbols with debug_ to reduce the namesapce pollution
-rw-r--r--include/openbsc/debug.h2
-rw-r--r--src/debug.c2
-rw-r--r--tests/debug/debug_test.c4
3 files changed, 4 insertions, 4 deletions
diff --git a/include/openbsc/debug.h b/include/openbsc/debug.h
index b3b170260..dcb74c03f 100644
--- a/include/openbsc/debug.h
+++ b/include/openbsc/debug.h
@@ -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 */
diff --git a/src/debug.c b/src/debug.c
index 8a558c202..c1bebcab1 100644
--- a/src/debug.c
+++ b/src/debug.c
@@ -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;
diff --git a/tests/debug/debug_test.c b/tests/debug/debug_test.c
index 4fe539c5a..77ac01532 100644
--- a/tests/debug/debug_test.c
+++ b/tests/debug/debug_test.c
@@ -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");