1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <console/console.h>
5 #include <fsp/fsp_debug_event.h>
8 static const uint8_t fsp_string_type_guid
[16] = {
9 0x80, 0x10, 0xd1, 0x92, 0x6f, 0x49, 0x95, 0x4d,
10 0xbe, 0x7e, 0x03, 0x74, 0x88, 0x38, 0x2b, 0x0a
13 static efi_return_status_t
print_fsp_string_data(const efi_status_code_data_t
*data
)
15 printk(get_log_level(), "%s", ((efi_status_code_string_data
*) data
)->String
.Ascii
);
20 efi_return_status_t
fsp_debug_event_handler(efi_status_code_type_t ignored1
,
21 efi_status_code_value_t ignored2
, efi_uint32_t ignored3
, efi_guid_t
*ignored4
,
22 efi_status_code_data_t
*data
)
24 if (!fsp_guid_compare((uint8_t *)&(data
->Type
), fsp_string_type_guid
))
27 return print_fsp_string_data(data
);