everywhere: fix typos

Fix a lot of typos

Signed-off-by: Nazar Kazakov <nazar.kazakov.work@gmail.com>
This commit is contained in:
Nazar Kazakov 2022-03-16 21:07:43 +00:00 committed by Anas Nashif
commit f483b1bc4c
757 changed files with 1284 additions and 1284 deletions

View file

@ -75,7 +75,7 @@ struct gcov_ctr_info {
struct gcov_fn_info {
const struct gcov_info *key; /* comdat key */
unsigned int ident; /* unique ident of function */
unsigned int lineno_checksum; /* function lineo_checksum */
unsigned int lineno_checksum; /* function lineno_checksum */
unsigned int cfg_checksum; /* function cfg checksum */
struct gcov_ctr_info ctrs[0]; /* instrumented counters */
};

View file

@ -17,13 +17,13 @@ typedef void (*busy_sim_cb_t)(void);
* is used for getting random numbers. System work queue is used to get random
* values and keep them in a ring buffer.
*
* @param active_avg Avarage time of busy looping in the counter callback (in microseconds).
* @param active_avg Average time of busy looping in the counter callback (in microseconds).
*
* @param active_delta Specifies deviation from avarage time of busy looping (in microseconds).
* @param active_delta Specifies deviation from average time of busy looping (in microseconds).
*
* @param idle_avg Avarage time of counter alarm timeout (in microseconds).
* @param idle_avg Average time of counter alarm timeout (in microseconds).
*
* @param idle_delta Specifies deviation from avarage time of counter alarm (in microseconds).
* @param idle_delta Specifies deviation from average time of counter alarm (in microseconds).
*
* @param cb Callback called from the context of the busy simulator timeout. If ZLI interrupt
* is used for busy simulator counter then kernel API cannot be used from that callback.

View file

@ -14,7 +14,7 @@ config ZTEST_NEW_API
bool "Use the new Ztest API"
help
Enables the new Ztest APIs for creating suites and unit tests in
separate compilational units as well as the new 'rules' API.
separate compilation units as well as the new 'rules' API.
config ZTEST_STACK_SIZE
int "Test function thread stack size"

View file

@ -214,7 +214,7 @@ static inline void unit_test_noop(void)
* @brief Create and register a new unit test.
*
* Calling this macro will create a new unit test and attach it to the declared `suite`. The `suite`
* does not need to be defined in the same compilational unit.
* does not need to be defined in the same compilation unit.
*
* @param suite The name of the test suite to attach this test
* @param fn The test function to call.
@ -278,7 +278,7 @@ struct ztest_test_rule {
* provides a mechanism for tests to perform custom operations depending on the specific test or
* the data (for example logging may use the test's name).
*
* @param name The name for the test rule (must be unique within the compilational unit)
* @param name The name for the test rule (must be unique within the compilation unit)
* @param before_each_fn The callback function to call before each test (may be NULL)
* @param after_each_fn The callback function to call after each test (may be NULL)
*/

View file

@ -59,7 +59,7 @@ static void test_timeout(struct k_timer *timer)
ztress_abort();
}
/* Ratio is 1/16, e.g using ratio 14 reduces all timeouts by multipling it by 14/16.
/* Ratio is 1/16, e.g using ratio 14 reduces all timeouts by multiplying it by 14/16.
* 16 fraction is used to avoid dividing which may take more time on certain platforms.
*/
static void adjust_load(uint8_t ratio)
@ -375,7 +375,7 @@ int ztress_execute(struct ztress_context_data *timer_data,
(void)k_timer_status_sync(&ztress_timer);
}
/* print raport */
/* print report */
ztress_report();
ztress_end(old_prio);
@ -403,7 +403,7 @@ void ztress_report(void)
(uint32_t)init_backoff[i].ticks, (uint32_t)backoff[i].ticks);
}
printk("\tAvarage CPU load:%u%%, measurements:%u\n",
printk("\tAverage CPU load:%u%%, measurements:%u\n",
rt.cpu_load / 10, rt.cpu_load_measurements);
}