summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVadim Yanitskiy <axilirator@gmail.com>2017-09-09 14:48:49 +0300
committerVadim Yanitskiy <axilirator@gmail.com>2017-12-31 12:20:59 +0100
commit262ae0f98f21e91ff21f2082892f75a778d077a5 (patch)
tree2f42223a090ea88fe1f92dceabf89b2f4739db34
parent5cabe1eeec55421954c052951a3dba00018af7cf (diff)
libosmogapk: drop an 'osmo' prefix from internal log variables
It would be better to have an 'osmo_gapk' prefix for exposed symbols only. Both internal logging variables aren't exposed, so they shouldn't have one.
-rw-r--r--include/osmocom/gapk/logging.h8
-rw-r--r--src/common.c8
2 files changed, 8 insertions, 8 deletions
diff --git a/include/osmocom/gapk/logging.h b/include/osmocom/gapk/logging.h
index eaa82ab..60376f1 100644
--- a/include/osmocom/gapk/logging.h
+++ b/include/osmocom/gapk/logging.h
@@ -20,9 +20,9 @@
#include <osmocom/core/logging.h>
-extern int osmo_gapk_log_init_complete;
-extern int osmo_gapk_log_subsys;
+extern int gapk_log_init_complete;
+extern int gapk_log_subsys;
#define LOGPGAPK(level, fmt, args...) \
- if (osmo_gapk_log_init_complete) \
- LOGP(osmo_gapk_log_subsys, level, fmt, ## args)
+ if (gapk_log_init_complete) \
+ LOGP(gapk_log_subsys, level, fmt, ## args)
diff --git a/src/common.c b/src/common.c
index 9448362..c7c5c32 100644
--- a/src/common.c
+++ b/src/common.c
@@ -28,11 +28,11 @@ void osmo_gapk_set_talloc_ctx(void *ctx)
}
/* Internal GAPK logging */
-int osmo_gapk_log_init_complete = 0;
-int osmo_gapk_log_subsys;
+int gapk_log_init_complete = 0;
+int gapk_log_subsys;
void osmo_gapk_log_init(int subsys)
{
- osmo_gapk_log_subsys = subsys;
- osmo_gapk_log_init_complete = 1;
+ gapk_log_subsys = subsys;
+ gapk_log_init_complete = 1;
}