cmd: tlv_eeprom
authorSven Auhagen <Sven.Auhagen@voleatech.de>
Sun, 12 Sep 2021 07:25:44 +0000 (09:25 +0200)
committerStefan Roese <sr@denx.de>
Thu, 21 Oct 2021 05:39:05 +0000 (07:39 +0200)
The function show_eeprom is missing int i if debug is enabled.

Signed-off-by: Sven Auhagen <sven.auhagen@voleatech.de>
Reviewed-by: Stefan Roese <sr@denx.de>
cmd/tlv_eeprom.c

index 2b643f9..bf8d453 100644 (file)
@@ -169,6 +169,9 @@ static void show_eeprom(u8 *eeprom)
 {
        int tlv_end;
        int curr_tlv;
+#ifdef DEBUG
+       int i;
+#endif
        struct tlvinfo_header *eeprom_hdr = to_header(eeprom);
        struct tlvinfo_tlv    *eeprom_tlv;