aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2017-12-02 16:29:15 +0100
committerHarald Welte <laforge@gnumonks.org>2017-12-02 21:05:34 +0100
commit62a6a2680f758730e9bd7ad333cf61c993ff0dd2 (patch)
tree59b393a6e5520498a70d65a6bc2d8a8b8009f178 /include
parent41d471351fed3b2179af99bebacd4c68cb1ef7df (diff)
scheduler: Harmonize log line format; Always print TS name + decoded FN
Diffstat (limited to 'include')
-rw-r--r--include/osmo-bts/scheduler_backend.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/osmo-bts/scheduler_backend.h b/include/osmo-bts/scheduler_backend.h
index af1cfbf4..5e077eff 100644
--- a/include/osmo-bts/scheduler_backend.h
+++ b/include/osmo-bts/scheduler_backend.h
@@ -1,5 +1,11 @@
#pragma once
+#define LOGL1S(subsys, level, l1t, tn, chan, fn, fmt, args ...) \
+ LOGP(subsys, level, "%s %s %s: " fmt, \
+ gsm_fn_as_gsmtime_str(fn), \
+ gsm_ts_name(&(l1t)->trx->ts[tn]), \
+ chan >=0 ? trx_chan_desc[chan].name : "", ## args)
+
typedef int trx_sched_rts_func(struct l1sched_trx *l1t, uint8_t tn,
uint32_t fn, enum trx_chan_type chan);