Print the bus type(s) of both chipset and chip in the flashrom output
Corresponding to flashrom svn r635.
Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
diff --git a/chipset_enable.c b/chipset_enable.c
index 670ece7..3c1f7bd 100644
--- a/chipset_enable.c
+++ b/chipset_enable.c
@@ -1059,6 +1059,8 @@
else
printf("OK.\n");
}
+ printf("This chipset supports the following protcols: %s.\n",
+ flashbuses_to_text(buses_supported));
return ret;
}
diff --git a/flashrom.c b/flashrom.c
index 5791372..a61bf2d 100644
--- a/flashrom.c
+++ b/flashrom.c
@@ -380,8 +380,10 @@
if (!flash || !flash->name)
return NULL;
- printf("Found chip \"%s %s\" (%d KB) at physical address 0x%lx.\n",
- flash->vendor, flash->name, flash->total_size, base);
+ printf("Found chip \"%s %s\" (%d KB, %s) at physical address 0x%lx.\n",
+ flash->vendor, flash->name, flash->total_size,
+ flashbuses_to_text(flash->bustype), base);
+
return flash;
}