1 /* SPDX-License-Identifier: LGPL-2.1-or-later */
2 
3 #include <efi.h>
4 #include <efilib.h>
5 
6 #include "util.h"
7 
efi_assert(const char * expr,const char * file,unsigned line,const char * function)8 void efi_assert(const char *expr, const char *file, unsigned line, const char *function) {
9         log_error_stall(L"systemd-boot assertion '%a' failed at %a:%u, function %a(). Halting.", expr, file, line, function);
10         for (;;)
11                 BS->Stall(60 * 1000 * 1000);
12 }
13