projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
81c27db
)
gallivm: use util_snprintf()
author
Brian Paul
<brianp@vmware.com>
Fri, 15 Oct 2010 23:32:23 +0000
(17:32 -0600)
committer
Brian Paul
<brianp@vmware.com>
Fri, 15 Oct 2010 23:32:23 +0000
(17:32 -0600)
src/gallium/auxiliary/gallivm/lp_bld_printf.c
patch
|
blob
|
history
diff --git
a/src/gallium/auxiliary/gallivm/lp_bld_printf.c
b/src/gallium/auxiliary/gallivm/lp_bld_printf.c
index 0c16bcf3478626bb2544e639cf360751b939ba65..f418e96aff4e0b7f169393eeda95c2ad1965f5f7 100644
(file)
--- 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);
}