Review at  https://gerrit.osmocom.org/7879

chan_alloc.c: Fix log var formatting issues

Backport from osmo-bsc.git Change-Id I7a5e5d26f250f954853c12cfd4de08fed68c178e.

Change-Id: Id2ed51eed42e9fd9c91d257c245f7bce8d568f3a
---
M openbsc/src/libbsc/chan_alloc.c
1 file changed, 2 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.osmocom.org:29418/openbsc refs/changes/79/7879/1

diff --git a/openbsc/src/libbsc/chan_alloc.c b/openbsc/src/libbsc/chan_alloc.c
index c4bc949..52a8259 100644
--- a/openbsc/src/libbsc/chan_alloc.c
+++ b/openbsc/src/libbsc/chan_alloc.c
@@ -579,7 +579,7 @@
 
        /* Check for invalid samples (shouldn't happen). */
        if (total == 0 || used > total) {
-               LOGP(DRLL, LOGL_NOTICE, "(bts=%d) bogus channel load sample 
(used=%lu / total=%u)\n",
+               LOGP(DRLL, LOGL_NOTICE, "(bts=%d) bogus channel load sample 
(used=%"PRIu64" / total=%"PRIu32")\n",
                     bts->nr, used, total);
                bts->T3122 = 0; /* disable override of network-wide default 
value */
                bts->chan_load_samples_idx = 0; /* invalidate other samples 
collected so far */
@@ -622,7 +622,7 @@
        else if (wait_ind > max_wait_ind)
                wait_ind = max_wait_ind;
 
-       LOGP(DRLL, LOGL_DEBUG, "(bts=%d) T3122 wait indicator set to %lu 
seconds\n", bts->nr, wait_ind);
+       LOGP(DRLL, LOGL_DEBUG, "(bts=%d) T3122 wait indicator set to %"PRIu64" 
seconds\n", bts->nr, wait_ind);
        bts->T3122 = (uint8_t)wait_ind;
        osmo_stat_item_set(bts->bts_statg->items[BTS_STAT_T3122], wait_ind);
 }

-- 
To view, visit https://gerrit.osmocom.org/7879
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Id2ed51eed42e9fd9c91d257c245f7bce8d568f3a
Gerrit-PatchSet: 1
Gerrit-Project: openbsc
Gerrit-Branch: master
Gerrit-Owner: Pau Espin Pedrol <[email protected]>

Reply via email to