diff mbox series

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

Message ID 20200925014440.47300-1-sjg@chromium.org
State Accepted
Delegated to: Bin Meng
Headers show
Series [1/2] x86: Fix-up patch for showing video information | expand

Commit Message

Simon Glass Sept. 25, 2020, 1:44 a.m. UTC
This should be merged into the following patch:

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

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

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

Comments

Bin Meng Sept. 25, 2020, 1:56 a.m. UTC | #1
On Fri, Sep 25, 2020 at 9:44 AM Simon Glass <sjg@chromium.org> wrote:
>
> This should be merged into the following patch:
>
>     09bd6339966 ("x86: video: Show information about each video device")

Squashed this patch to 09bd6339966 to u-boot-x86/next, thanks!

>
> Signed-off-by: Simon Glass <sjg@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
>
diff mbox series

Patch

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];