diff options
author | Eric Engestrom <[email protected]> | 2018-11-20 11:59:28 +0000 |
---|---|---|
committer | Eric Engestrom <[email protected]> | 2019-07-19 22:39:38 +0100 |
commit | dffeaa55dd1155d7a1e8feb5ecfc54fff688fcd8 (patch) | |
tree | a232b3bef0f7251f90cd3a279674218c46a60d65 /src/compiler/glsl/ir_print_visitor.cpp | |
parent | 00e23cd96998deae429508efa10545be13420379 (diff) |
util: use standard name for snprintf()
Signed-off-by: Eric Engestrom <[email protected]>
Reviewed-by: Eric Anholt <[email protected]>
Reviewed-by: Emil Velikov <[email protected]>
Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/compiler/glsl/ir_print_visitor.cpp')
-rw-r--r-- | src/compiler/glsl/ir_print_visitor.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/compiler/glsl/ir_print_visitor.cpp b/src/compiler/glsl/ir_print_visitor.cpp index e208aaef888..b3a62ce38bd 100644 --- a/src/compiler/glsl/ir_print_visitor.cpp +++ b/src/compiler/glsl/ir_print_visitor.cpp @@ -167,31 +167,31 @@ void ir_print_visitor::visit(ir_variable *ir) char binding[32] = {0}; if (ir->data.binding) - util_snprintf(binding, sizeof(binding), "binding=%i ", ir->data.binding); + snprintf(binding, sizeof(binding), "binding=%i ", ir->data.binding); char loc[32] = {0}; if (ir->data.location != -1) - util_snprintf(loc, sizeof(loc), "location=%i ", ir->data.location); + snprintf(loc, sizeof(loc), "location=%i ", ir->data.location); char component[32] = {0}; if (ir->data.explicit_component || ir->data.location_frac != 0) - util_snprintf(component, sizeof(component), "component=%i ", + snprintf(component, sizeof(component), "component=%i ", ir->data.location_frac); char stream[32] = {0}; if (ir->data.stream & (1u << 31)) { if (ir->data.stream & ~(1u << 31)) { - util_snprintf(stream, sizeof(stream), "stream(%u,%u,%u,%u) ", - ir->data.stream & 3, (ir->data.stream >> 2) & 3, - (ir->data.stream >> 4) & 3, (ir->data.stream >> 6) & 3); + snprintf(stream, sizeof(stream), "stream(%u,%u,%u,%u) ", + ir->data.stream & 3, (ir->data.stream >> 2) & 3, + (ir->data.stream >> 4) & 3, (ir->data.stream >> 6) & 3); } } else if (ir->data.stream) { - util_snprintf(stream, sizeof(stream), "stream%u ", ir->data.stream); + snprintf(stream, sizeof(stream), "stream%u ", ir->data.stream); } char image_format[32] = {0}; if (ir->data.image_format) { - util_snprintf(image_format, sizeof(image_format), "format=%x ", + snprintf(image_format, sizeof(image_format), "format=%x ", ir->data.image_format); } |