Skip to content
Snippets Groups Projects
Unverified Commit 532b8f05 authored by Martine Lenders's avatar Martine Lenders Committed by GitHub
Browse files

Merge pull request #9777 from miri64/stm32_common/fix/llvm-formatting

stm32_common/eeprom: fix DEBUG formatting
parents 0c14681a 9478274b
No related branches found
No related tags found
No related merge requests found
...@@ -39,7 +39,7 @@ uint8_t eeprom_read_byte(uint32_t pos) ...@@ -39,7 +39,7 @@ uint8_t eeprom_read_byte(uint32_t pos)
{ {
assert(pos < EEPROM_SIZE); 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); return *(uint8_t *)(EEPROM_START_ADDR + pos);
} }
...@@ -47,7 +47,7 @@ void eeprom_write_byte(uint32_t pos, uint8_t data) ...@@ -47,7 +47,7 @@ void eeprom_write_byte(uint32_t pos, uint8_t data)
{ {
assert(pos < EEPROM_SIZE); 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(); _unlock();
*(uint8_t *)(EEPROM_START_ADDR + pos) = data; *(uint8_t *)(EEPROM_START_ADDR + pos) = data;
_lock(); _lock();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment