summaryrefslogtreecommitdiffstats
path: root/src/boot/efi/assert.c
blob: bb16d2bf9328f76745b32e0750872904a2af6b60 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* SPDX-License-Identifier: LGPL-2.1-or-later */

#include <efi.h>
#include <efilib.h>

#include "util.h"

void efi_assert(const char *expr, const char *file, unsigned line, const char *function) {
        log_error_stall(L"systemd-boot assertion '%a' failed at %a:%u, function %a(). Halting.", expr, file, line, function);
        for (;;)
                BS->Stall(60 * 1000 * 1000);
}