summaryrefslogtreecommitdiffstats
path: root/src/vty
diff options
context:
space:
mode:
authorHarald Welte2011-02-17 15:52:39 +0100
committerHarald Welte2011-02-17 15:52:39 +0100
commit76e72abe329e7b36b88a8f939593d84b2ba00152 (patch)
treefe8aba61dadbaf111a22cb5ba48451747c473326 /src/vty
parentwrite_queue: Only pop the queue if it is not empty (diff)
downloadlibosmocore-76e72abe329e7b36b88a8f939593d84b2ba00152.tar.gz
libosmocore-76e72abe329e7b36b88a8f939593d84b2ba00152.tar.xz
libosmocore-76e72abe329e7b36b88a8f939593d84b2ba00152.zip
LOGGING: Pass the log level down to the log target output function
This will be required for mapping osmocore log levels to syslog priorities.
Diffstat (limited to 'src/vty')
-rw-r--r--src/vty/logging_vty.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/vty/logging_vty.c b/src/vty/logging_vty.c
index ea58887..55882a7 100644
--- a/src/vty/logging_vty.c
+++ b/src/vty/logging_vty.c
@@ -35,7 +35,8 @@
extern const struct log_info *osmo_log_info;
-static void _vty_output(struct log_target *tgt, const char *line)
+static void _vty_output(struct log_target *tgt,
+ unsigned int level, const char *line)
{
struct vty *vty = tgt->tgt_vty.vty;
vty_out(vty, "%s", line);