From: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Date: Thu, 24 Mar 2022 13:21:26 +0100
Subject: fdt: add debug output to devicetree command

For debugging we need feedback that the devicetree command has be executed.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
---
 grub-core/loader/efi/fdt.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/grub-core/loader/efi/fdt.c b/grub-core/loader/efi/fdt.c
index e510b34..b4a0447 100644
--- a/grub-core/loader/efi/fdt.c
+++ b/grub-core/loader/efi/fdt.c
@@ -137,6 +137,7 @@ grub_cmd_devicetree (grub_command_t cmd __attribute__ ((unused)),
   /* No arguments means "use firmware FDT".  */
   if (argc == 0)
     {
+      grub_dprintf ("fdt", "Using firmware FDT\n");
       return GRUB_ERR_NONE;
     }
 
@@ -168,6 +169,7 @@ out:
 
   if (blob)
     {
+      grub_dprintf ("fdt", "Device-tree %s loaded\n", argv[0]);
       if (grub_errno == GRUB_ERR_NONE)
 	loaded_fdt = blob;
       else
