[PATCH 1/2] x86: Fix-up patch for showing video information

Simon Glass sjg at chromium.org
Fri Sep 25 03:44:39 CEST 2020


This should be merged into the following patch:

    09bd6339966 ("x86: video: Show information about each video device")

Signed-off-by: Simon Glass <sjg at chromium.org>
---

 cmd/bdinfo.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/cmd/bdinfo.c b/cmd/bdinfo.c
index 39a606ba348..8d8daa6336a 100644
--- a/cmd/bdinfo.c
+++ b/cmd/bdinfo.c
@@ -36,6 +36,12 @@ static void print_eth(int idx)
 	printf("%-12s= %s\n", name, val);
 }
 
+static void print_phys_addr(const char *name, phys_addr_t value)
+{
+	printf("%-12s= 0x%.*llx\n", name, 2 * (int)sizeof(ulong),
+	       (unsigned long long)value);
+}
+
 void bdinfo_print_mhz(const char *name, unsigned long hz)
 {
 	char buf[32];
-- 
2.28.0.681.g6f77f65b4e-goog



More information about the U-Boot mailing list