From cfca5875484aea4f5eaeac8dd9f53a3882ee0b59 Mon Sep 17 00:00:00 2001 From: Ismael Gomez Date: Wed, 15 Jun 2016 12:32:52 +0200 Subject: [PATCH] pdcch: added printf for encode error --- srslte/lib/enb/enb_dl.c | 2 +- srslte/lib/phch/pdcch.c | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/srslte/lib/enb/enb_dl.c b/srslte/lib/enb/enb_dl.c index 5084caf60..7481c673a 100644 --- a/srslte/lib/enb/enb_dl.c +++ b/srslte/lib/enb/enb_dl.c @@ -320,7 +320,7 @@ int srslte_enb_dl_put_grant_pdsch(srslte_enb_dl_t *q, srslte_enb_dl_grant_pdsch_ if (srslte_enb_dl_put_pdsch(q, &phy_grant, grants[i].softbuffer, grants[i].rnti_idx, grants[i].grant.rv_idx, sf_idx, grants[i].data)) { - fprintf(stderr, "Error putting PDCCH %d\n",i); + fprintf(stderr, "Error putting PDSCH %d\n",i); return SRSLTE_ERROR; } } diff --git a/srslte/lib/phch/pdcch.c b/srslte/lib/phch/pdcch.c index f41c43d0e..a63cc7489 100644 --- a/srslte/lib/phch/pdcch.c +++ b/srslte/lib/phch/pdcch.c @@ -555,7 +555,9 @@ int srslte_pdcch_encode(srslte_pdcch_t *q, srslte_dci_msg_t *msg, srslte_dci_loc } else { fprintf(stderr, "Illegal DCI message nCCE: %d, L: %d, nof_cce: %d\n", location.ncce, location.L, q->nof_cce); } - } + } else { + fprintf(stderr, "Invalid parameters: cfi=%d, L=%d, nCCE=%d\n", cfi, location.L, location.ncce); + } return ret; }