123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- #pragma once
- #include <efi.h>
- #include "linux/stdarg.h"
- #define efi_printk(__fmt, ...) \
- ({ \
- static CHAR16 __mem[2048]; \
- int i; \
- for (i = 0; __fmt[i]; ++i) \
- __mem[i] = (CHAR16)__fmt[i]; \
- __mem[i] = 0; \
- Print(__mem, ##__VA_ARGS__); \
- })
- #define efi_todo(__fmt) \
- ({ \
- efi_printk("Not yet implemented: " __fmt); \
- while (1) \
- ; \
- })
- #define efi_info(fmt, ...) efi_printk("[INFO]: " fmt, ##__VA_ARGS__)
- #define efi_warn(fmt, ...) efi_printk("[WARNING]: " fmt, ##__VA_ARGS__)
- #define efi_err(fmt, ...) efi_printk("[ERROR]: " fmt, ##__VA_ARGS__)
- #define efi_debug(fmt, ...) efi_printk("[DEBUG]: " fmt, ##__VA_ARGS__)
- int snprintf(char *buf, size_t size, const char *fmt, ...);
- int vsnprintf(char *buf, size_t size, const char *fmt, va_list args);
|