aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2019-07-23 15:45:24 +0200
committerlaforge <laforge@gnumonks.org>2019-07-24 19:28:56 +0000
commit160b624da8cae9bff4aa72090941126bad71f348 (patch)
treeb69985d05f0a7e8c219aceaa1ff3024d329d9342 /src
parent291468694bab167cd920c6a65ebdec5e4248935c (diff)
trx: Use LOGPPHI instead of LOGP in some more messages
This allows to clearly identify the phy instance owning those messages. Change-Id: I90990e4dbcbb2fb4a3fcb24658bdf53e57030bcf
Diffstat (limited to 'src')
-rw-r--r--src/osmo-bts-trx/trx_if.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/osmo-bts-trx/trx_if.c b/src/osmo-bts-trx/trx_if.c
index b966bbef..6c6d5ad9 100644
--- a/src/osmo-bts-trx/trx_if.c
+++ b/src/osmo-bts-trx/trx_if.c
@@ -107,22 +107,22 @@ static int trx_clk_read_cb(struct osmo_fd *ofd, unsigned int what)
buf[len] = '\0';
if (!!strncmp(buf, "IND CLOCK ", 10)) {
- LOGP(DTRX, LOGL_NOTICE, "Unknown message on clock port: %s\n",
- buf);
+ LOGPPHI(pinst, DTRX, LOGL_NOTICE,
+ "Unknown message on clock port: %s\n", buf);
return 0;
}
if (sscanf(buf, "IND CLOCK %u", &fn) != 1) {
- LOGP(DTRX, LOGL_ERROR, "Unable to parse '%s'\n", buf);
+ LOGPPHI(pinst, DTRX, LOGL_ERROR, "Unable to parse '%s'\n", buf);
return 0;
}
- LOGP(DTRX, LOGL_INFO, "Clock indication: fn=%u\n", fn);
+ LOGPPHI(pinst, DTRX, LOGL_INFO, "Clock indication: fn=%u\n", fn);
if (fn >= GSM_HYPERFRAME) {
fn %= GSM_HYPERFRAME;
- LOGP(DTRX, LOGL_ERROR, "Indicated clock's FN is not wrapping "
- "correctly, correcting to fn=%u\n", fn);
+ LOGPPHI(pinst, DTRX, LOGL_ERROR, "Indicated clock's FN is not "
+ "wrapping correctly, correcting to fn=%u\n", fn);
}
/* inform core TRX clock handling code that a FN has been received */
@@ -339,8 +339,8 @@ int trx_if_cmd_rxtune(struct trx_l1h *l1h, uint16_t arfcn)
freq10 = gsm_arfcn2freq10(arfcn, 1); /* RX = uplink */
if (freq10 == 0xffff) {
- LOGP(DTRX, LOGL_ERROR, "Arfcn %d not defined.\n",
- arfcn & ~ARFCN_FLAG_MASK);
+ LOGPPHI(pinst, DTRX, LOGL_ERROR, "Arfcn %d not defined.\n",
+ arfcn & ~ARFCN_FLAG_MASK);
return -ENOTSUP;
}
@@ -358,8 +358,8 @@ int trx_if_cmd_txtune(struct trx_l1h *l1h, uint16_t arfcn)
freq10 = gsm_arfcn2freq10(arfcn, 0); /* TX = downlink */
if (freq10 == 0xffff) {
- LOGP(DTRX, LOGL_ERROR, "Arfcn %d not defined.\n",
- arfcn & ~ARFCN_FLAG_MASK);
+ LOGPPHI(pinst, DTRX, LOGL_ERROR, "Arfcn %d not defined.\n",
+ arfcn & ~ARFCN_FLAG_MASK);
return -ENOTSUP;
}