Skip to content

Commit

Permalink
test: fix typos
Browse files Browse the repository at this point in the history
Fix spelling errors found by crate-ci/typos.

Signed-off-by: Tianyu Li <tianyu.li@arm.com>
Reviewed-by: Tuomas Taipale <tuomas.taipale@nokia.com>
Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
  • Loading branch information
TianyuLi0 authored and MatiasElo committed Aug 14, 2023
1 parent 30c50f4 commit 51aed67
Show file tree
Hide file tree
Showing 10 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion test/performance/odp_bench_packet.c
Original file line number Diff line number Diff line change
Expand Up @@ -1466,7 +1466,7 @@ static int packet_parse_multi(void)
}

/**
* Prinf usage information
* Print usage information
*/
static void usage(char *progname)
{
Expand Down
2 changes: 1 addition & 1 deletion test/performance/odp_cpu_bench.c
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ static int run_thread(void *arg)
}

/*
* Prinf usage information
* Print usage information
*/
static void usage(char *progname)
{
Expand Down
2 changes: 1 addition & 1 deletion test/performance/odp_ipsec.c
Original file line number Diff line number Diff line change
Expand Up @@ -1022,7 +1022,7 @@ static int run_thr_func(void *arg)
}

/**
* Prinf usage information
* Print usage information
*/
static void usage(char *progname)
{
Expand Down
2 changes: 1 addition & 1 deletion test/performance/odp_l2fwd.c
Original file line number Diff line number Diff line change
Expand Up @@ -1421,7 +1421,7 @@ static void init_port_lookup_tbl(void)
}

/*
* Prinf usage information
* Print usage information
*/
static void usage(char *progname)
{
Expand Down
2 changes: 1 addition & 1 deletion test/performance/odp_pktio_ordered.c
Original file line number Diff line number Diff line change
Expand Up @@ -809,7 +809,7 @@ static void init_forwarding_tbl(void)
}

/**
* Prinf usage information
* Print usage information
*/
static void usage(char *progname)
{
Expand Down
2 changes: 1 addition & 1 deletion test/performance/odp_sched_perf.c
Original file line number Diff line number Diff line change
Expand Up @@ -1148,7 +1148,7 @@ static int start_workers(test_global_t *global, odp_instance_t instance)

if (num_group > 0 && num_join) {
/* Each thread joins only num_join groups, starting
* from this group index and wraping around the group
* from this group index and wrapping around the group
* table. */
int first_group = (i * num_join) % num_group;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ static uint32_t seqno_offset(odp_packet_t pkt)
CU_ASSERT_FATAL(rc == 0);
len = sizeof(ip) + odp_be_to_cpu_16(ip.payload_len);
} else {
CU_FAIL_FATAL("Unexcpected packet type");
CU_FAIL_FATAL("Unexpected packet type");
}

return l3_offset + len - sizeof(cls_test_packet_t);
Expand Down
4 changes: 2 additions & 2 deletions test/validation/api/lock/lock.c
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ static int no_lock_functional_test(void *arg UNUSED)
lock_owner_delay = BASE_DELAY;

/*
* Tunning the iteration number:
* Tuning the iteration number:
* Here, we search for an iteration number that guarantees to show
* race conditions between the odp threads.
* Iterations is set to ITER_MPLY_FACTOR * cnt where cnt is when
Expand Down Expand Up @@ -470,7 +470,7 @@ static int no_lock_functional_test(void *arg UNUSED)
CU_ASSERT(sync_failures != 0 || global_mem->g_num_threads == 1);

/*
* set the iterration for the future tests to be far above the
* set the iteration for the future tests to be far above the
* contention level
*/
iterations *= ITER_MPLY_FACTOR;
Expand Down
2 changes: 1 addition & 1 deletion test/validation/api/scheduler/scheduler.c
Original file line number Diff line number Diff line change
Expand Up @@ -1250,7 +1250,7 @@ static void scheduler_test_groups(void)
num--;
}

/* Release schduler context and leave groups */
/* Release scheduler context and leave groups */
odp_schedule_group_join(mygrp1, &mymask);
odp_schedule_group_join(mygrp2, &mymask);
CU_ASSERT(drain_queues() == 0);
Expand Down
2 changes: 1 addition & 1 deletion test/validation/api/traffic_mngr/traffic_mngr.c
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ static const char ALPHABET[] =
/* The following constant table determines the minimum and maximum number of
* pkts that will be received when sending 100 pkts through a system with a
* drop probability of p% (using a uniform probability distribution), with a
* confidence of 99.9% 99.99% and 99.999%. The confidence is interepreted as
* confidence of 99.9% 99.99% and 99.999%. The confidence is interpreted as
* follows: a 99.99% confidence says that receiving LESS pkts than the given
* minimum or receiving MORE pkts than the given maximum (assuming a uniform
* drop percent of p) will happen less than 1 time in 10,000 trials.
Expand Down

0 comments on commit 51aed67

Please sign in to comment.