tests: drivers: nrf_lf_clock_control: Polish status messages a bit
Improve alignment in the source code and limit printed messages (SYSTEM_CLOCK_NO_WAIT and SYSTEM_CLOCK_WAIT_FOR_* are choice options, so it is enough to print only the enabled one). Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
This commit is contained in:
parent
31767a0bce
commit
d361d8f7ec
1 changed files with 14 additions and 13 deletions
|
@ -89,19 +89,20 @@ ZTEST(nrf_lf_clock_start, test_wait_in_thread)
|
|||
|
||||
void *test_init(void)
|
||||
{
|
||||
TC_PRINT("CLOCK_CONTROL_NRF_K32SRC=%s\n",
|
||||
IS_ENABLED(CONFIG_CLOCK_CONTROL_NRF_K32SRC_RC) ? "RC"
|
||||
: IS_ENABLED(CONFIG_CLOCK_CONTROL_NRF_K32SRC_SYNTH) ? "SYNTH"
|
||||
: IS_ENABLED(CONFIG_CLOCK_CONTROL_NRF_K32SRC_XTAL) ? "XTAL"
|
||||
: "???");
|
||||
TC_PRINT("SYSTEM_CLOCK_NO_WAIT=%c\n",
|
||||
IS_ENABLED(CONFIG_SYSTEM_CLOCK_NO_WAIT) ? 'y' : 'n');
|
||||
TC_PRINT("SYSTEM_CLOCK_WAIT_FOR_AVAILABILITY=%c\n",
|
||||
IS_ENABLED(CONFIG_SYSTEM_CLOCK_WAIT_FOR_AVAILABILITY) ?
|
||||
'y' : 'n');
|
||||
TC_PRINT("SYSTEM_CLOCK_WAIT_FOR_STABILITY=%c\n",
|
||||
IS_ENABLED(CONFIG_SYSTEM_CLOCK_WAIT_FOR_STABILITY) ?
|
||||
'y' : 'n');
|
||||
TC_PRINT("CLOCK_CONTROL_NRF_K32SRC=%s\n",
|
||||
IS_ENABLED(CONFIG_CLOCK_CONTROL_NRF_K32SRC_RC) ? "RC" :
|
||||
IS_ENABLED(CONFIG_CLOCK_CONTROL_NRF_K32SRC_SYNTH) ? "SYNTH" :
|
||||
IS_ENABLED(CONFIG_CLOCK_CONTROL_NRF_K32SRC_XTAL) ? "XTAL"
|
||||
: "???");
|
||||
if (IS_ENABLED(CONFIG_SYSTEM_CLOCK_NO_WAIT)) {
|
||||
TC_PRINT("SYSTEM_CLOCK_NO_WAIT=y\n");
|
||||
}
|
||||
if (IS_ENABLED(CONFIG_SYSTEM_CLOCK_WAIT_FOR_AVAILABILITY)) {
|
||||
TC_PRINT("SYSTEM_CLOCK_WAIT_FOR_AVAILABILITY=y\n");
|
||||
}
|
||||
if (IS_ENABLED(CONFIG_SYSTEM_CLOCK_WAIT_FOR_STABILITY)) {
|
||||
TC_PRINT("SYSTEM_CLOCK_WAIT_FOR_STABILITY=y\n");
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
ZTEST_SUITE(nrf_lf_clock_start, NULL, test_init, NULL, NULL, NULL);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue