fx.term: remove redundant printf implementation

This commit is contained in:
2026-05-25 17:31:40 +01:00
parent aea3f99859
commit c5eac75a0b
3 changed files with 67 additions and 964 deletions
+3 -7
View File
@@ -102,8 +102,8 @@ static print_function format_printers[] = {
[FX_PRINT_WARN] = print_warn,
[FX_PRINT_ERR] = print_err,
};
static size_t nr_format_printers
= sizeof format_printers / sizeof format_printers[FX_PRINT_NORMAL];
static size_t nr_format_printers = sizeof format_printers
/ sizeof format_printers[FX_PRINT_NORMAL];
fx_status fx_print(fx_print_format format, const char *str, ...)
{
@@ -140,11 +140,7 @@ int fx_printf(const char *format, ...)
{
va_list arg;
va_start(arg, format);
int x = fx_tty_vprintf(
fx_stdtty,
FX_TTY_DISABLE_INTERPOLATED_FORMATTING,
format,
arg);
int x = fx_tty_vprintf(fx_stdtty, 0, format, arg);
va_end(arg);
return x;
}