174 *wstrp =
malloc (
len *
sizeof ( **wstrp ) );
struct printf_context ctx
printf context
static __always_inline void off_t int c
void(* handler)(struct printf_context *ctx, unsigned int c)
Character handler.
int efi_vsnprintf(wchar_t *wbuf, size_t wsize, const char *fmt, va_list args)
Write a formatted string to a wide-character buffer.
FILE_LICENCE(GPL2_OR_LATER_OR_UBDL)
wchar_t * buf
Buffer for formatted string (used by efi_printf_sputc())
int efi_vasprintf(wchar_t **wstrp, const char *fmt, va_list args)
Write a formatted string to newly allocated memory.
#define va_copy(dest, src)
struct golan_eq_context ctx
#define ENOMEM
Not enough space.
#define container_of(ptr, type, field)
Get containing structure.
int efi_snprintf(wchar_t *wbuf, size_t wsize, const char *fmt,...)
Write a formatted string to a buffer.
static void efi_printf_sputc(struct printf_context *ctx, unsigned int c)
Write wide character to buffer.
void * malloc(size_t size)
Allocate memory.
size_t max_wlen
Buffer length (used by efi_printf_sputc())
__builtin_va_list va_list
int efi_vssnprintf(wchar_t *wbuf, ssize_t swsize, const char *fmt, va_list args)
Version of efi_vsnprintf() that accepts a signed buffer size.
int ssize_t const char * fmt
Context used by efi_vsnprintf() and friends.
#define va_start(ap, last)
int efi_asprintf(wchar_t **wstrp, const char *fmt,...)
Write a formatted string to newly allocated memory.
#define NULL
NULL pointer (VOID *)
int efi_ssnprintf(wchar_t *wbuf, ssize_t swsize, const char *fmt,...)
Version of efi_vsnprintf() that accepts a signed buffer size.
size_t vcprintf(struct printf_context *ctx, const char *fmt, va_list args)
Write a formatted string to a printf context.