From 9478274bd93c57f62d77d5b51e15f9029862962d Mon Sep 17 00:00:00 2001 From: Martine Lenders Date: Tue, 14 Aug 2018 14:56:41 +0200 Subject: [PATCH] stm32_common/eeprom: fix DEBUG formatting This fixes compilation for `periph_eeprom` with LLVM/clang and also is more in accordance with our [coding conventions]. [coding conventions]: https://github.com/RIOT-OS/RIOT/wiki/Coding-conventions#-wformat --- cpu/stm32_common/periph/eeprom.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cpu/stm32_common/periph/eeprom.c b/cpu/stm32_common/periph/eeprom.c index 470ae47276..bef71291b3 100644 --- a/cpu/stm32_common/periph/eeprom.c +++ b/cpu/stm32_common/periph/eeprom.c @@ -39,7 +39,7 @@ uint8_t eeprom_read_byte(uint32_t pos) { assert(pos < EEPROM_SIZE); - DEBUG("Reading data from EEPROM at pos %lu\n", pos); + DEBUG("Reading data from EEPROM at pos %" PRIu32 "\n", pos); return *(uint8_t *)(EEPROM_START_ADDR + pos); } @@ -47,7 +47,7 @@ void eeprom_write_byte(uint32_t pos, uint8_t data) { assert(pos < EEPROM_SIZE); - DEBUG("Writing data '%c' to EEPROM at pos %lu\n", data, pos); + DEBUG("Writing data '%c' to EEPROM at pos %" PRIu32 "\n", data, pos); _unlock(); *(uint8_t *)(EEPROM_START_ADDR + pos) = data; _lock();