summaryrefslogtreecommitdiffstats
path: root/src/boot/efi/util.h
diff options
context:
space:
mode:
authorJan Janssen <medhefgo@web.de>2022-06-10 19:06:57 +0200
committerJan Janssen <medhefgo@web.de>2023-01-18 16:50:04 +0100
commitc2c6203556f842820ca09e0653c123305f2ba6d2 (patch)
tree2223cfe8b1d4a43e81910544771c5ade24707312 /src/boot/efi/util.h
parentboot: Add printf functions (diff)
downloadsystemd-c2c6203556f842820ca09e0653c123305f2ba6d2.tar.xz
systemd-c2c6203556f842820ca09e0653c123305f2ba6d2.zip
boot: Use printf for error logging
This also drops the _stall suffix in anticipation of the next commit.
Diffstat (limited to '')
-rw-r--r--src/boot/efi/util.h12
1 files changed, 1 insertions, 11 deletions
diff --git a/src/boot/efi/util.h b/src/boot/efi/util.h
index 32ecea7d6a..101eee1718 100644
--- a/src/boot/efi/util.h
+++ b/src/boot/efi/util.h
@@ -5,6 +5,7 @@
#include <efilib.h>
#include <stddef.h>
+#include "log.h"
#include "string-util-fundamental.h"
#define UINTN_MAX (~(UINTN)0)
@@ -139,17 +140,6 @@ static inline void unload_imagep(EFI_HANDLE *image) {
&(const EFI_GUID) { 0x4a67b082, 0x0a4c, 0x41cf, { 0xb6, 0xc7, 0x44, 0x0b, 0x29, 0xbb, 0x8c, 0x4f } }
#define EFI_GLOBAL_GUID &(const EFI_GUID) EFI_GLOBAL_VARIABLE
-void log_error_stall(const char16_t *fmt, ...);
-EFI_STATUS log_oom(void);
-
-/* This works just like log_error_errno() from userspace, but requires you
- * to provide err a second time if you want to use %r in the message! */
-#define log_error_status_stall(err, fmt, ...) \
- ({ \
- log_error_stall(fmt, ##__VA_ARGS__); \
- err; \
- })
-
void print_at(UINTN x, UINTN y, UINTN attr, const char16_t *str);
void clear_screen(UINTN attr);