Kévin Redon has uploaded this change for review. ( 
https://gerrit.osmocom.org/10763


Change subject: EEPROM: fix Wformat compile warning
......................................................................

EEPROM: fix Wformat compile warning

Change-Id: I86434a46a75f2acc30e20c33edab6dd3f87e052b
---
M firmware/libboard/qmod/source/board_qmod.c
1 file changed, 2 insertions(+), 2 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/simtrace2 refs/changes/63/10763/1

diff --git a/firmware/libboard/qmod/source/board_qmod.c 
b/firmware/libboard/qmod/source/board_qmod.c
index 55efb54..dcfe17f 100644
--- a/firmware/libboard/qmod/source/board_qmod.c
+++ b/firmware/libboard/qmod/source/board_qmod.c
@@ -165,13 +165,13 @@
                UART_GetIntegerMinMax(&addr, 0, 255);
                printf("Please enter EEPROM value:\n\r");
                UART_GetIntegerMinMax(&val, 0, 255);
-               printf("Writing value 0x%02x to EEPROM offset 0x%02x\n\r", val, 
addr);
+               printf("Writing value 0x%02lx to EEPROM offset 0x%02lx\n\r", 
val, addr);
                eeprom_write_byte(0x50, addr, val);
                break;
        case 'r':
                printf("Please enter EEPROM offset:\n\r");
                UART_GetIntegerMinMax(&addr, 0, 255);
-               printf("EEPROM[0x%02x] = 0x%02x\n\r", addr, 
eeprom_read_byte(0x50, addr));
+               printf("EEPROM[0x%02lx] = 0x%02x\n\r", addr, 
eeprom_read_byte(0x50, addr));
                break;
        default:
                printf("Unknown command '%c'\n\r", ch);

--
To view, visit https://gerrit.osmocom.org/10763
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: simtrace2
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I86434a46a75f2acc30e20c33edab6dd3f87e052b
Gerrit-Change-Number: 10763
Gerrit-PatchSet: 1
Gerrit-Owner: Kévin Redon <[email protected]>

Reply via email to