verifiers: Add verify string debug message

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 <tianjia.zhang@linux.alibaba.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
This commit is contained in:
Tianjia Zhang 2020-05-13 16:53:41 +08:00 committed by Daniel Kiper
parent 0f3600bf1b
commit 0fa9ed41ac

View file

@ -208,6 +208,9 @@ grub_err_t
grub_verify_string (char *str, enum grub_verify_string_type type) grub_verify_string (char *str, enum grub_verify_string_type type)
{ {
struct grub_file_verifier *ver; struct grub_file_verifier *ver;
grub_dprintf ("verify", "string: %s, type: %d\n", str, type);
FOR_LIST_ELEMENTS(ver, grub_file_verifiers) FOR_LIST_ELEMENTS(ver, grub_file_verifiers)
{ {
grub_err_t err; grub_err_t err;