From 686806dcf7e0b684fdffbbd911cf7befcebcafe5 Mon Sep 17 00:00:00 2001 From: Jesse Gilles Date: Thu, 28 Aug 2014 15:35:45 -0500 Subject: log data after writing --- src/eeprom_main.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/eeprom_main.c') diff --git a/src/eeprom_main.c b/src/eeprom_main.c index 050da4d..b4fa197 100644 --- a/src/eeprom_main.c +++ b/src/eeprom_main.c @@ -640,6 +640,16 @@ int main(int argc, char *argv[]) { log_error("un-handled out-format"); exit(1); } + + /* print out what we wrote to the eeprom, unless stdout */ + if (strcmp(out_file, "-")) { + log_info("Data written to %s", out_file); + if (daughter_card) { + mts_dc_eeprom_inspect(&dc_eeprom); + } else { + mts_id_eeprom_inspect(&id_eeprom); + } + } } return 0; -- cgit v1.2.3