From: Hugo Villeneuve Date: Wed, 5 Nov 2025 16:32:48 +0000 (-0500) Subject: tlv_eeprom: suppress success log messages X-Git-Url: http://gitweb.hugovil.com/?a=commitdiff_plain;h=9f252ebd3db39f9953ee80a53406005ab8b68dc8;p=mtlv.git tlv_eeprom: suppress success log messages Signed-off-by: Hugo Villeneuve --- diff --git a/src/tlv_eeprom.c b/src/tlv_eeprom.c index 6a4c46c..904c6bb 100644 --- a/src/tlv_eeprom.c +++ b/src/tlv_eeprom.c @@ -173,8 +173,10 @@ void show_eeprom(int devnum, u8 *eeprom) curr_tlv += ENT_SIZE + eeprom_tlv->length; } - printf("Checksum is %s.\n", - is_checksum_valid(eeprom) ? "valid" : "invalid"); + if (!is_checksum_valid(eeprom)) { + printf("Invalid checksum\n"); + return; + } #ifdef DEBUG printf("EEPROM dump: (0x%x bytes)", TLV_INFO_MAX_LEN); @@ -376,7 +378,6 @@ int prog_eeprom(int devnum, u8 *eeprom) return -1; } - printf("Programming passed.\n"); return 0; }