diff options
author | Brian Paul <brianp@vmware.com> | 2010-10-15 17:32:23 -0600 |
---|---|---|
committer | Brian Paul <brianp@vmware.com> | 2010-10-15 17:32:23 -0600 |
commit | 46c2ee4fad7d960fb0ff396caff4430df6a4611e (patch) | |
tree | 5a1a773f47f968353fcc52259a4280db2d60d5bb /src/gallium | |
parent | 81c27dbfb943df8dc5cf65a2654d96fe5d7c1df4 (diff) | |
download | external_mesa3d-46c2ee4fad7d960fb0ff396caff4430df6a4611e.zip external_mesa3d-46c2ee4fad7d960fb0ff396caff4430df6a4611e.tar.gz external_mesa3d-46c2ee4fad7d960fb0ff396caff4430df6a4611e.tar.bz2 |
gallivm: use util_snprintf()
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/auxiliary/gallivm/lp_bld_printf.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_printf.c b/src/gallium/auxiliary/gallivm/lp_bld_printf.c index 0c16bcf..f418e96 100644 --- a/src/gallium/auxiliary/gallivm/lp_bld_printf.c +++ b/src/gallium/auxiliary/gallivm/lp_bld_printf.c @@ -29,6 +29,7 @@ #include "util/u_debug.h" #include "util/u_memory.h" +#include "util/u_string.h" #include "lp_bld_const.h" #include "lp_bld_printf.h" @@ -136,6 +137,6 @@ lp_build_print_vec4(LLVMBuilderRef builder, const char *msg, LLVMValueRef vec) z = LLVMBuildExtractElement(builder, vec, lp_build_const_int32(2), ""); w = LLVMBuildExtractElement(builder, vec, lp_build_const_int32(3), ""); - snprintf(format, sizeof(format), "%s %%f %%f %%f %%f\n", msg); + util_snprintf(format, sizeof(format), "%s %%f %%f %%f %%f\n", msg); return lp_build_printf(builder, format, x, y, z, w); } |