Skip to content

Commit

Permalink
Call warning() instead of printf("WARINING: ....")
Browse files Browse the repository at this point in the history
  • Loading branch information
davidBar-On committed Sep 15, 2024
1 parent d2a6ba6 commit dab301f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/iperf_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -2820,19 +2820,19 @@ JSON_read(int fd)
json = cJSON_Parse(str);
}
else {
printf("WARNING: JSON size of data read does not correspond to offered length\n");
warning("JSON size of data read does not correspond to offered length");
}
}
free(str);
}
}
}
else {
printf("WARNING: JSON data length overflow\n");
warning("JSON data length overflow");
}
}
else {
printf("WARNING: Failed to read JSN data size\n");
warning("Failed to read JSON data size");
}
return json;
}
Expand Down

0 comments on commit dab301f

Please sign in to comment.