Commit c6e9992e authored by Robert Schmidt's avatar Robert Schmidt

Make LCID output nicer

parent 6a7d7e18
...@@ -166,20 +166,14 @@ size_t dump_mac_stats(gNB_MAC_INST *gNB, char *output, size_t strlen, bool reset ...@@ -166,20 +166,14 @@ size_t dump_mac_stats(gNB_MAC_INST *gNB, char *output, size_t strlen, bool reset
UE->rnti, UE->rnti,
stats->ulsch_total_bytes_scheduled, stats->ul.total_bytes); stats->ulsch_total_bytes_scheduled, stats->ul.total_bytes);
for (int lc_id = 0; lc_id < 63; lc_id++) { for (int i = 0; i < sched_ctrl->dl_lc_num; i++) {
if (stats->dl.lc_bytes[lc_id] > 0) int lc_id = sched_ctrl->dl_lc_ids[i];
output += snprintf(output, output += snprintf(output,
end - output, end - output,
"UE %04x: LCID %d: %"PRIu64" bytes TX\n", "UE %04x: LCID %d: TX %14"PRIu64" RX %14"PRIu64" bytes\n",
UE->rnti,
lc_id,
stats->dl.lc_bytes[lc_id]);
if (stats->ul.lc_bytes[lc_id] > 0)
output += snprintf(output,
end - output,
"UE %04x: LCID %d: %"PRIu64" bytes RX\n",
UE->rnti, UE->rnti,
lc_id, lc_id,
stats->dl.lc_bytes[lc_id],
stats->ul.lc_bytes[lc_id]); stats->ul.lc_bytes[lc_id]);
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment