summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJesse Gilles <jgilles@multitech.com>2014-08-28 15:35:45 -0500
committerJesse Gilles <jgilles@multitech.com>2014-08-28 15:35:45 -0500
commit686806dcf7e0b684fdffbbd911cf7befcebcafe5 (patch)
tree4f9e27108eef349c87f1fe9132d7449f4c0a5c9b /src
parent685b4bf9ce94d218922498cb43fdf294818ddcea (diff)
downloadmts-id-eeprom-686806dcf7e0b684fdffbbd911cf7befcebcafe5.tar.gz
mts-id-eeprom-686806dcf7e0b684fdffbbd911cf7befcebcafe5.tar.bz2
mts-id-eeprom-686806dcf7e0b684fdffbbd911cf7befcebcafe5.zip
log data after writing0.2.3
Diffstat (limited to 'src')
-rw-r--r--src/eeprom_main.c10
1 files changed, 10 insertions, 0 deletions
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;