CPPCHECK fixes for printf issues

Fix for following CPPCheck warnings
- invalidPrintfArgType
Rebased with latest develop branch w21.
Reverted modifications unrelated to printf issues.
This commit is contained in:
Vijay Chadachan
2023-06-01 12:07:26 +02:00
committed by TheoniJ
parent 0e64165093
commit 836469e849
83 changed files with 687 additions and 688 deletions
+1 -1
View File
@@ -596,7 +596,7 @@ static void init_bler_table(char *env_string) {
for (unsigned int i = 0; i < NR_NUM_MCS; i++) {
char fName[1024];
snprintf(fName, sizeof(fName), "%s/mcs%d_awgn_5G.csv", awgn_results_dir, i);
snprintf(fName, sizeof(fName), "%s/mcs%u_awgn_5G.csv", awgn_results_dir, i);
FILE *pFile = fopen(fName, "r");
if (!pFile) {
LOG_E(NR_MAC, "%s: open %s: %s\n", __func__, fName, strerror(errno));