logging: add osmo_vlogp() as vararg / va_list compatible function
diff --git a/include/osmocom/core/logging.h b/include/osmocom/core/logging.h
index 9476211..fc4e2fb 100644
--- a/include/osmocom/core/logging.h
+++ b/include/osmocom/core/logging.h
@@ -27,6 +27,9 @@
 #endif
 
 
+void osmo_vlogp(int subsys, int level, char *file, int line,
+		int cont, const char *format, va_list ap);
+
 void logp(int subsys, char *file, int line, int cont, const char *format, ...) __attribute__ ((format (printf, 5, 6)));
 
 /*! \brief Log a new message through the Osmocom logging framework
diff --git a/src/logging.c b/src/logging.c
index 700733f..9dd63e7 100644
--- a/src/logging.c
+++ b/src/logging.c
@@ -257,8 +257,9 @@
 	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 @@
 	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 @@
 	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);
 }