aboutsummaryrefslogtreecommitdiffstats
path: root/src/util/u_debug.c
diff options
context:
space:
mode:
authorEric Engestrom <[email protected]>2018-11-20 11:47:06 +0000
committerEric Engestrom <[email protected]>2019-07-19 22:39:38 +0100
commit27b9eea5575bd2a7c5e84b299a9ebb1e025beb25 (patch)
tree3f061fe51c557a4987268a85f6bbb856a9b86284 /src/util/u_debug.c
parent3ba199abd122e52734effc64426f57578d9e38a2 (diff)
util: use standard name for strncat()
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/util/u_debug.c')
-rw-r--r--src/util/u_debug.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/util/u_debug.c b/src/util/u_debug.c
index ab3c8eb316d..465d669b69e 100644
--- a/src/util/u_debug.c
+++ b/src/util/u_debug.c
@@ -371,10 +371,10 @@ debug_dump_flags(const struct debug_named_value *names, unsigned long value)
while (names->name) {
if ((names->value & value) == names->value) {
if (!first)
- util_strncat(output, "|", sizeof(output) - strlen(output) - 1);
+ strncat(output, "|", sizeof(output) - strlen(output) - 1);
else
first = 0;
- util_strncat(output, names->name, sizeof(output) - strlen(output) - 1);
+ strncat(output, names->name, sizeof(output) - strlen(output) - 1);
output[sizeof(output) - 1] = '\0';
value &= ~names->value;
}
@@ -383,12 +383,12 @@ debug_dump_flags(const struct debug_named_value *names, unsigned long value)
if (value) {
if (!first)
- util_strncat(output, "|", sizeof(output) - strlen(output) - 1);
+ strncat(output, "|", sizeof(output) - strlen(output) - 1);
else
first = 0;
util_snprintf(rest, sizeof(rest), "0x%08lx", value);
- util_strncat(output, rest, sizeof(output) - strlen(output) - 1);
+ strncat(output, rest, sizeof(output) - strlen(output) - 1);
output[sizeof(output) - 1] = '\0';
}