mirror of https://github.com/PentHertz/srsLTE.git
Polar: Add more information to ERROR traces
This commit is contained in:
parent
573ff24a47
commit
4b6849b775
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue