Add debug to display what's going on with verifiers
authorSteve McIntyre <93sam@debian.org>
Sat, 17 Apr 2021 21:05:47 +0000 (22:05 +0100)
committerPeter Michael Green <plugwash@raspbian.org>
Sun, 28 Jul 2024 22:42:11 +0000 (22:42 +0000)
Patch-Name: debug_verifiers.patch

Gbp-Pq: Name debug_verifiers.patch

grub-core/kern/verifiers.c

index 1245d0d9ed35c29c0b348b30ad78dcd8e27b6e38..5242a723fd8bd91b6db5be2eac5e69959e7ec85f 100644 (file)
@@ -100,11 +100,13 @@ grub_verifiers_open (grub_file_t io, enum grub_file_type type)
   FOR_LIST_ELEMENTS(ver, grub_file_verifiers)
     {
       enum grub_verify_flags flags = 0;
+      grub_dprintf ("verify", "trying verifier %s\n", ver->name);
       err = ver->init (io, type, &context, &flags);
       if (err)
        goto fail_noclose;
       if (flags & GRUB_VERIFY_FLAGS_DEFER_AUTH)
        {
+         grub_dprintf ("verify", "verifier %s said GRUB_VERIFY_FLAGS_DEFER_AUTH\n", ver->name);
          defer = 1;
          continue;
        }