diff --git a/lib/include/srslte/phy/fec/polar/polar_code.h b/lib/include/srslte/phy/fec/polar/polar_code.h index 5500eb676..fe70685c1 100644 --- a/lib/include/srslte/phy/fec/polar/polar_code.h +++ b/lib/include/srslte/phy/fec/polar/polar_code.h @@ -381,7 +381,7 @@ static inline const uint16_t* get_blk_interleaver(uint8_t n) return blk_interleaver_10; break; default: - ERROR("Wrong code_size_log\n"); + ERROR("Wrong code_size_log (%d)\n", n); return NULL; } } diff --git a/lib/src/phy/fec/polar/polar_code.c b/lib/src/phy/fec/polar/polar_code.c index 9a95d690d..b4d39fb33 100644 --- a/lib/src/phy/fec/polar/polar_code.c +++ b/lib/src/phy/fec/polar/polar_code.c @@ -104,8 +104,9 @@ int get_code_params(srslte_polar_code_t* c, const uint16_t K, const uint16_t E, case 10: // iil = false if (K < 18 || (K > 25 && K < 31) || K > 1023) { - ERROR("Codeblock length (K) not supported for uplink transmission, choose K > 17 and K < 1024, " - "excluding 31 > K > 25\n"); + ERROR("Codeblock length (K=%d) not supported for uplink transmission, choose K > 17 and K < 1024, " + "excluding 31 > K > 25\n", + K); return -1; } break;