Skip to content

Commit

Permalink
Merge #19568 #19575
Browse files Browse the repository at this point in the history
19568: tests: move remaining driver related applications to tests/drivers r=aabadie a=aabadie



19575: treewide: fix format specifiers r=maribu a=maribu

### Contribution description

This brings format specifiers and the passed type back into sync. This won't change observable behavior in one case, and won't even change machine code in the other. But formally, this fixes bugs.


Co-authored-by: Alexandre Abadie <alexandre.abadie@inria.fr>
Co-authored-by: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
  • Loading branch information
3 people authored May 10, 2023
3 parents c7f750a + aebbd01 + 64f4f9a commit 4417f85
Show file tree
Hide file tree
Showing 34 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion cpu/esp32/periph/pwm.c
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ void pwm_poweroff(pwm_t pwm)
void pwm_print_config(void)
{
for (unsigned pwm = 0; pwm < PWM_NUMOF; pwm++) {
printf("\tPWM_DEV(%d)\tchannels=[ ", pwm);
printf("\tPWM_DEV(%u)\tchannels=[ ", pwm);
for (int i = 0; i < _CFG.ch_numof; i++) {
printf("%d ", _CFG.gpios[i]);
}
Expand Down
2 changes: 1 addition & 1 deletion sys/shell/cmds/gnrc_icmpv6_echo.c
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ static int _print_reply(gnrc_pktsnip_t *pkt, int corrupted, uint32_t triptime, v
}
/* check response for corruption */
else if (corrupted >= 0) {
printf(" corrupted at offset %u", corrupted);
printf(" corrupted at offset %u", (unsigned)corrupted);
}
if (rssi != GNRC_NETIF_HDR_NO_RSSI) {
printf(" rssi=%"PRId16" dBm", rssi);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
BOARD ?= stm32f429i-disc1
include ../Makefile.tests_common
include ../Makefile.drivers_common

DISABLE_MODULE += test_utils_interactive_sync

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
BOARD ?= nucleo-f767zi

include ../Makefile.tests_common
include ../Makefile.drivers_common

USEMODULE += mtd_at24cxxx
USEMODULE += embunit
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
include ../Makefile.tests_common
include ../Makefile.drivers_common

USEMODULE += mtd_at25xxx
USEMODULE += embunit
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
include ../Makefile.tests_common
include ../Makefile.drivers_common

USEMODULE += mtd_flashpage
USEMODULE += mtd_write_page
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
include ../Makefile.tests_common
include ../Makefile.drivers_common

USEMODULE += mtd_mapper
USEMODULE += mtd_write_page
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion tests/mtd_raw/Makefile → tests/drivers/mtd_raw/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
include ../Makefile.tests_common
include ../Makefile.drivers_common

USEMODULE += shell
USEMODULE += shell_cmds_default
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion tests/saul/Makefile → tests/drivers/saul/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
include ../Makefile.tests_common
include ../Makefile.drivers_common

# include and auto-initialize all available sensors
USEMODULE += saul_default
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
BOARD ?= stm32f4discovery
include ../Makefile.tests_common
include ../Makefile.drivers_common

# Only build on a subset of boards (one per arch supported and
# with enough features provided)
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
BOARD ?= stm32f429i-disc1
include ../Makefile.tests_common
include ../Makefile.drivers_common

DISABLE_MODULE += test_utils_interactive_sync

Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit 4417f85

Please sign in to comment.