summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2011-08-27 14:33:19 +0200
committerHarald Welte <laforge@gnumonks.org>2011-08-31 19:40:03 +0200
commit36c5a3e2857b049e1e979beb7d476426ae475831 (patch)
treed2317566548eea484231996e54949c2984fc7fec /src
parentd38c8b88d7b74093d0a2045173306238f8a1f80b (diff)
logging: add osmo_vlogp() as vararg / va_list compatible function
Diffstat (limited to 'src')
-rw-r--r--src/logging.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/logging.c b/src/logging.c
index 700733f5..9dd63e73 100644
--- a/src/logging.c
+++ b/src/logging.c
@@ -257,8 +257,9 @@ err:
target->output(target, level, buf);
}
-static void _logp(int subsys, int level, char *file, int line,
- int cont, const char *format, va_list ap)
+/*! \brief vararg version of logging function */
+void osmo_vlogp(int subsys, int level, char *file, int line,
+ int cont, const char *format, va_list ap)
{
struct log_target *tar;
@@ -313,7 +314,7 @@ void logp(int subsys, char *file, int line, int cont,
va_list ap;
va_start(ap, format);
- _logp(subsys, LOGL_DEBUG, file, line, cont, format, ap);
+ osmo_vlogp(subsys, LOGL_DEBUG, file, line, cont, format, ap);
va_end(ap);
}
@@ -322,7 +323,7 @@ void logp2(int subsys, unsigned int level, char *file, int line, int cont, const
va_list ap;
va_start(ap, format);
- _logp(subsys, level, file, line, cont, format, ap);
+ osmo_vlogp(subsys, level, file, line, cont, format, ap);
va_end(ap);
}