diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2020-01-22 02:13:18 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2020-01-22 02:13:18 +0000 |
commit | fdcc03929065b5bf5dd93553db219ea3e05c8c34 (patch) | |
tree | ca90dc8d9e89febdcd4160956c1b8ec098a4efc9 /lib/mesa/src/gallium/auxiliary/util/u_log.c | |
parent | 3c9de4a7e13712b5696750bbd59a18c848742022 (diff) |
Import Mesa 19.2.8
Diffstat (limited to 'lib/mesa/src/gallium/auxiliary/util/u_log.c')
-rw-r--r-- | lib/mesa/src/gallium/auxiliary/util/u_log.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/mesa/src/gallium/auxiliary/util/u_log.c b/lib/mesa/src/gallium/auxiliary/util/u_log.c index 90fd24ca3..4e261500a 100644 --- a/lib/mesa/src/gallium/auxiliary/util/u_log.c +++ b/lib/mesa/src/gallium/auxiliary/util/u_log.c @@ -130,7 +130,7 @@ u_log_printf(struct u_log_context *ctx, const char *fmt, ...) char *str = NULL; va_start(va, fmt); - int ret = util_vasprintf(&str, fmt, va); + int ret = vasprintf(&str, fmt, va); va_end(va); if (ret >= 0) { @@ -187,6 +187,8 @@ out_of_memory: void u_log_new_page_print(struct u_log_context *ctx, FILE *stream) { + u_log_flush(ctx); + if (ctx->cur) { u_log_page_print(ctx->cur, stream); u_log_page_destroy(ctx->cur); @@ -202,6 +204,8 @@ u_log_new_page_print(struct u_log_context *ctx, FILE *stream) struct u_log_page * u_log_new_page(struct u_log_context *ctx) { + u_log_flush(ctx); + struct u_log_page *page = ctx->cur; ctx->cur = NULL; return page; |