From 9f252ebd3db39f9953ee80a53406005ab8b68dc8 Mon Sep 17 00:00:00 2001 From: Hugo Villeneuve Date: Wed, 5 Nov 2025 11:32:48 -0500 Subject: [PATCH] tlv_eeprom: suppress success log messages Signed-off-by: Hugo Villeneuve --- src/tlv_eeprom.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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; } -- 2.20.1