[Mesa-dev] [PATCH 2/2] gallium/util: use new util_vasprintf() function

Brian Paul brianp at vmware.com
Fri Sep 8 22:55:08 UTC 2017


---
 src/gallium/auxiliary/util/u_log.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/gallium/auxiliary/util/u_log.c b/src/gallium/auxiliary/util/u_log.c
index 359b3e1..dacbe05 100644
--- a/src/gallium/auxiliary/util/u_log.c
+++ b/src/gallium/auxiliary/util/u_log.c
@@ -24,6 +24,7 @@
 #include "u_log.h"
 
 #include "u_memory.h"
+#include "util/u_string.h"
 
 struct page_entry {
    const struct u_log_chunk_type *type;
@@ -129,7 +130,7 @@ u_log_printf(struct u_log_context *ctx, const char *fmt, ...)
    char *str = NULL;
 
    va_start(va, fmt);
-   int ret = vasprintf(&str, fmt, va);
+   int ret = util_vasprintf(&str, fmt, va);
    va_end(va);
 
    if (ret >= 0) {
-- 
1.9.1



More information about the mesa-dev mailing list