aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/driver_ddebug
diff options
context:
space:
mode:
authorEric Engestrom <[email protected]>2018-11-20 11:59:28 +0000
committerEric Engestrom <[email protected]>2019-07-19 22:39:38 +0100
commitdffeaa55dd1155d7a1e8feb5ecfc54fff688fcd8 (patch)
treea232b3bef0f7251f90cd3a279674218c46a60d65 /src/gallium/auxiliary/driver_ddebug
parent00e23cd96998deae429508efa10545be13420379 (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/gallium/auxiliary/driver_ddebug')
-rw-r--r--src/gallium/auxiliary/driver_ddebug/dd_draw.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/gallium/auxiliary/driver_ddebug/dd_draw.c b/src/gallium/auxiliary/driver_ddebug/dd_draw.c
index eef44a7c348..b25ac87e543 100644
--- a/src/gallium/auxiliary/driver_ddebug/dd_draw.c
+++ b/src/gallium/auxiliary/driver_ddebug/dd_draw.c
@@ -51,13 +51,13 @@ dd_get_debug_filename_and_mkdir(char *buf, size_t buflen, bool verbose)
strcpy(proc_name, "unknown");
}
- util_snprintf(dir, sizeof(dir), "%s/"DD_DIR, debug_get_option("HOME", "."));
+ snprintf(dir, sizeof(dir), "%s/"DD_DIR, debug_get_option("HOME", "."));
if (mkdir(dir, 0774) && errno != EEXIST)
fprintf(stderr, "dd: can't create a directory (%i)\n", errno);
- util_snprintf(buf, buflen, "%s/%s_%u_%08u", dir, proc_name, getpid(),
- p_atomic_inc_return(&index) - 1);
+ snprintf(buf, buflen, "%s/%s_%u_%08u", dir, proc_name, getpid(),
+ p_atomic_inc_return(&index) - 1);
if (verbose)
fprintf(stderr, "dd: dumping to file %s\n", buf);
@@ -1086,9 +1086,9 @@ dd_thread_main(void *input)
const char *process_name = util_get_process_name();
if (process_name) {
char threadname[16];
- util_snprintf(threadname, sizeof(threadname), "%.*s:ddbg",
- (int)MIN2(strlen(process_name), sizeof(threadname) - 6),
- process_name);
+ snprintf(threadname, sizeof(threadname), "%.*s:ddbg",
+ (int)MIN2(strlen(process_name), sizeof(threadname) - 6),
+ process_name);
u_thread_setname(threadname);
}