Skip to content

Commit

Permalink
test: bench: update wording and fix wrong int type
Browse files Browse the repository at this point in the history
Update error message wording in bench applications to better fit the
style of each application. Fix incorrect int type in odp_bench_pktio_sp.

Signed-off-by: Ray Sointula <[email protected]>
Reviewed-by: Matias Elo <[email protected]>
Reviewed-by: Tuomas Taipale <[email protected]>
  • Loading branch information
Rayska authored and MatiasElo committed Jul 4, 2024
1 parent 083ccca commit 052255a
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion test/performance/odp_bench_buffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -773,7 +773,7 @@ int main(int argc, char *argv[])

argc = test_common_parse_options(argc, argv);
if (test_common_options(&common_options)) {
ODPH_ERR("Error: reading test helper options failed\n");
ODPH_ERR("Error: reading test options failed\n");
exit(EXIT_FAILURE);
}

Expand Down
2 changes: 1 addition & 1 deletion test/performance/odp_bench_misc.c
Original file line number Diff line number Diff line change
Expand Up @@ -980,7 +980,7 @@ int main(int argc, char *argv[])

argc = test_common_parse_options(argc, argv);
if (test_common_options(&common_options)) {
ODPH_ERR("Error: reading test helper options failed\n");
ODPH_ERR("Reading test options failed\n");
exit(EXIT_FAILURE);
}

Expand Down
2 changes: 1 addition & 1 deletion test/performance/odp_bench_packet.c
Original file line number Diff line number Diff line change
Expand Up @@ -1775,7 +1775,7 @@ int main(int argc, char *argv[])

argc = test_common_parse_options(argc, argv);
if (test_common_options(&common_options)) {
ODPH_ERR("Error: reading test helper options failed\n");
ODPH_ERR("Error: reading test options failed\n");
exit(EXIT_FAILURE);
}

Expand Down
4 changes: 2 additions & 2 deletions test/performance/odp_bench_pktio_sp.c
Original file line number Diff line number Diff line change
Expand Up @@ -804,7 +804,7 @@ static int bench_pktio_sp_export(void *data)
for (uint32_t i = 0; i < gbl_args->suite.num_bench; i++) {
for (int j = 0; j < gbl_args->result[i].num; j++) {
num = gbl_args->result[i].func[j].num ? gbl_args->result[i].func[j].num : 1;
if (test_common_write("%s,%i,%i,%i\n",
if (test_common_write("%s,%" PRIu64 ",%" PRIu64 ",%" PRIu64 "\n",
gbl_args->result[i].func[j].name,
odp_time_to_ns(gbl_args->result[i].func[j].min),
odp_time_to_ns(gbl_args->result[i].func[j].tot) / num,
Expand Down Expand Up @@ -1072,7 +1072,7 @@ int main(int argc, char *argv[])

argc = test_common_parse_options(argc, argv);
if (test_common_options(&common_options)) {
ODPH_ERR("Error: reading test helper options failed\n");
ODPH_ERR("Reading test options failed\n");
exit(EXIT_FAILURE);
}

Expand Down
2 changes: 1 addition & 1 deletion test/performance/odp_bench_timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -625,7 +625,7 @@ int main(int argc, char *argv[])

argc = test_common_parse_options(argc, argv);
if (test_common_options(&common_options)) {
ODPH_ERR("Error: reading test helper options failed\n");
ODPH_ERR("Reading test options failed\n");
exit(EXIT_FAILURE);
}

Expand Down

0 comments on commit 052255a

Please sign in to comment.