Skip to content

Commit 070a518

Browse files
committed
exec_context_print_stats: use nbio_printf
1 parent 2ae0424 commit 070a518

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

lib/exec.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
#include "expr.h"
1313
#include "insn.h"
1414
#include "leb128.h"
15+
#include "nbio.h"
1516
#include "platform.h"
1617
#include "shared_memory_impl.h"
1718
#include "timeutil.h"
@@ -1062,11 +1063,11 @@ exec_context_clear(struct exec_context *ctx)
10621063
}
10631064

10641065
#define VEC_PRINT_USAGE(name, vec) \
1065-
printf("%s %" PRIu32 " (%zu bytes)\n", (name), (vec)->psize, \
1066-
(vec)->psize * sizeof(*(vec)->p));
1066+
nbio_printf("%s %" PRIu32 " (%zu bytes)\n", (name), (vec)->psize, \
1067+
(vec)->psize * sizeof(*(vec)->p));
10671068

10681069
#define STAT_PRINT(name) \
1069-
printf("%23s %12" PRIu64 "\n", #name, ctx->stats.name);
1070+
nbio_printf("%23s %12" PRIu64 "\n", #name, ctx->stats.name);
10701071

10711072
void
10721073
exec_context_print_stats(struct exec_context *ctx)

0 commit comments

Comments
 (0)