]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
boot: Add log_trace debugging helper
authorJan Janssen <medhefgo@web.de>
Thu, 18 Aug 2022 11:41:49 +0000 (13:41 +0200)
committerJan Janssen <medhefgo@web.de>
Wed, 18 Jan 2023 15:50:04 +0000 (16:50 +0100)
src/boot/efi/log.h

index f24034fd7897c4ab4fa26bf87a0a9c389870e920..9bdcfad9231cc66ef62e55da54990992961e46cd 100644 (file)
@@ -8,3 +8,4 @@ _gnu_printf_(2, 3) EFI_STATUS log_internal(EFI_STATUS status, const char *format
 #define log_error_status(status, ...) log_internal(status, __VA_ARGS__)
 #define log_error(...) log_internal(EFI_INVALID_PARAMETER, __VA_ARGS__)
 #define log_oom() log_internal(EFI_OUT_OF_RESOURCES, "Out of memory.")
+#define log_trace() log_internal(EFI_SUCCESS, "%s:%i@%s", __FILE__, __LINE__, __func__)