diff options
author | Michael Brown <mcb30@ipxe.org> | 2014-06-25 14:44:13 +0100 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2014-06-25 14:44:13 +0100 |
commit | 44338bfd223c0594420385c21eb25c77d45b405f (patch) | |
tree | bc8b5b1c956c8516186ac60d9402ea8b66b6ebb7 /src/include | |
parent | 8290a955130e0a6d6112ad8f269d8f617103e070 (diff) | |
download | ipxe-44338bfd223c0594420385c21eb25c77d45b405f.zip ipxe-44338bfd223c0594420385c21eb25c77d45b405f.tar.gz ipxe-44338bfd223c0594420385c21eb25c77d45b405f.tar.bz2 |
[efi] Allow device paths to be easily included in debug messages
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/ipxe/efi/efi.h | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/src/include/ipxe/efi/efi.h b/src/include/ipxe/efi/efi.h index 05576f9..38342f7 100644 --- a/src/include/ipxe/efi/efi.h +++ b/src/include/ipxe/efi/efi.h @@ -149,9 +149,10 @@ extern EFI_DEVICE_PATH_PROTOCOL *efi_loaded_image_path; extern EFI_SYSTEM_TABLE *efi_systab; extern const char * efi_guid_ntoa ( EFI_GUID *guid ); +extern const char * efi_devpath_text ( EFI_DEVICE_PATH_PROTOCOL *path ); +extern const char * efi_handle_devpath_text ( EFI_HANDLE handle ); extern void dbg_efi_protocols ( EFI_HANDLE handle ); -extern void dbg_efi_devpath ( EFI_DEVICE_PATH_PROTOCOL *path ); #define DBG_EFI_PROTOCOLS_IF( level, handle ) do { \ if ( DBG_ ## level ) { \ @@ -159,30 +160,15 @@ extern void dbg_efi_devpath ( EFI_DEVICE_PATH_PROTOCOL *path ); } \ } while ( 0 ) -#define DBG_EFI_DEVPATH_IF( level, path ) do { \ - if ( DBG_ ## level ) { \ - dbg_efi_devpath ( path ); \ - } \ - } while ( 0 ) - #define DBGC_EFI_PROTOCOLS_IF( level, id, ... ) do { \ DBG_AC_IF ( level, id ); \ DBG_EFI_PROTOCOLS_IF ( level, __VA_ARGS__ ); \ DBG_DC_IF ( level ); \ } while ( 0 ) -#define DBGC_EFI_DEVPATH_IF( level, id, ... ) do { \ - DBG_AC_IF ( level, id ); \ - DBG_EFI_DEVPATH_IF ( level, __VA_ARGS__ ); \ - DBG_DC_IF ( level ); \ - } while ( 0 ) - #define DBGC_EFI_PROTOCOLS( ... ) \ DBGC_EFI_PROTOCOLS_IF( LOG, ##__VA_ARGS__ ) -#define DBGC_EFI_DEVPATH( ... ) \ - DBGC_EFI_DEVPATH_IF( LOG, ##__VA_ARGS__ ) - extern EFI_STATUS efi_init ( EFI_HANDLE image_handle, EFI_SYSTEM_TABLE *systab ); |