1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/core/lib
bors[bot] 71f783f1c8
Merge #19156 #19174
19156: core/compiler_hints: add likely() / unlikely() hints r=kfessel a=benpicco



19174: tests/periph_spi clearly say when init succeeds r=benpicco a=jdavid

When the `tests/periph_spi` program succeeds the output can be interpreted as an error happened.
This PR makes it clearer when it does succeed.

### Contribution description

In `tests/periph_spi`:

- Explicitely say that the init operation was successful
- Rephrase the note to avoid misinterpretations 


### Testing procedure

Run the `tests/periph_spi` program.
There is not much to test, just to verify the output, should be like this:

```
2023-01-19 10:42:33,768 # Trying to initialize SPI_DEV(1): mode: 0, clk: 0, cs_port: 0, cs_pin: 0
2023-01-19 10:42:33,777 # (if below the program crashes with a failed assertion, then it means the configuration is not supported)
2023-01-19 10:42:33,779 # Success.
```


### Issues/PRs references

Issue https://github.com/RIOT-OS/RIOT/issues/19025

Co-authored-by: Benjamin Valentin <benjamin.valentin@ml-pa.com>
Co-authored-by: J. David Ibáñez <jdavid.ibp@gmail.com>
2023-01-19 15:38:47 +00:00
..
include Merge #19156 #19174 2023-01-19 15:38:47 +00:00
assert.c core/assert: print backtrace on failed assertion 2023-01-18 01:57:11 +01:00
atomic_c11.c core: split out library code 2022-03-09 21:43:05 +01:00
atomic_sync.c core: split out library code 2022-03-09 21:43:05 +01:00
bitarithm.c bitarithm: Move extern const out of static inline functions 2022-05-29 13:59:39 +02:00
clist.c core: split out library code 2022-03-09 21:43:05 +01:00
init.c core/init: call vfs_bind_stdio() in early_init() 2023-01-08 22:26:13 +01:00
Makefile core: split out library code 2022-03-09 21:43:05 +01:00
panic.c core/assert: print last instruction in assert() 2022-06-12 14:18:53 +02:00
priority_queue.c core: split out library code 2022-03-09 21:43:05 +01:00
ringbuffer.c core: split out library code 2022-03-09 21:43:05 +01:00
rmutex.c core: split out library code 2022-03-09 21:43:05 +01:00