Polar: Add more information to ERROR traces

This commit is contained in:
Xavier Arteaga 2021-01-25 18:02:30 +01:00 committed by Xavier Arteaga
parent 573ff24a47
commit 4b6849b775
2 changed files with 4 additions and 3 deletions

View File

@ -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;
}
}

View File

@ -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;