[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] verifiers: Add verify string debug message

From: Tianjia Zhang
Subject: [PATCH] verifiers: Add verify string debug message
Date: Wed, 13 May 2020 16:53:41 +0800

Like grub_verifiers_open(), the grub_verify_string() should also
display this debug message, which is very helpful for debugging.

Signed-off-by: Tianjia Zhang <address@hidden>
 grub-core/commands/verifiers.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/grub-core/commands/verifiers.c b/grub-core/commands/verifiers.c
index 7b9297cd3..aae4d84bb 100644
--- a/grub-core/commands/verifiers.c
+++ b/grub-core/commands/verifiers.c
@@ -208,6 +208,9 @@ grub_err_t
 grub_verify_string (char *str, enum grub_verify_string_type type)
   struct grub_file_verifier *ver;
+  grub_dprintf ("verify", "string: %s, type: %d\n", str, type);
   FOR_LIST_ELEMENTS(ver, grub_file_verifiers)
       grub_err_t err;

reply via email to

[Prev in Thread] Current Thread [Next in Thread]