]> git.sur5r.net Git - u-boot/blobdiff - include/efi_loader.h
efi_loader: write protocol GUID in OpenProtocol
[u-boot] / include / efi_loader.h
index 1179234f6836b6e7aaa942cbed3e1a701aee2737..46d684f6df8d21c7b4002f87faf468c3f47aed00 100644 (file)
@@ -17,6 +17,7 @@
 
 int __efi_entry_check(void);
 int __efi_exit_check(void);
+const char *__efi_nesting(void);
 const char *__efi_nesting_inc(void);
 const char *__efi_nesting_dec(void);
 
@@ -51,6 +52,13 @@ const char *__efi_nesting_dec(void);
        debug("%sEFI: Return From: %s\n", __efi_nesting_dec(), #exp); \
        } while(0)
 
+/*
+ * Write GUID
+ */
+#define EFI_PRINT_GUID(txt, guid) ({ \
+       debug("%sEFI: %s %pUl\n", __efi_nesting(), txt, guid); \
+       })
+
 extern struct efi_runtime_services efi_runtime_services;
 extern struct efi_system_table systab;