1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
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: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
This commit is contained in:
bors[bot] 2023-05-10 15:57:08 +00:00 committed by GitHub
commit 4d190935ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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]);
}

View File

@ -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);