[PATCH] fdt: add debug output to devicetree command
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Thu, 24 Mar 2022 12:21:26 +0000 (13:21 +0100)
committerFelix Zielcke <fzielcke@z-51.de>
Wed, 11 Jun 2025 15:42:34 +0000 (17:42 +0200)
For debugging we need feedback that the devicetree command has be executed.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Gbp-Pq: Name fdt-add-debug-output-to-devicetree-command.patch

grub-core/loader/efi/fdt.c

index 439964b9ca6d975c208c8a24755ce4de0e62d291..510958d5a953267cc1e0becb05a60c57a85b719b 100644 (file)
@@ -127,6 +127,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;
     }
 
@@ -158,6 +159,7 @@ out:
 
   if (blob)
     {
+      grub_dprintf ("fdt", "Device-tree %s loaded\n", argv[0]);
       if (grub_errno == GRUB_ERR_NONE)
        loaded_fdt = blob;
       else