util: use standard name for snprintf()
[mesa.git] / src / gallium / auxiliary / driver_ddebug / dd_draw.c
index eef44a7c348fa266f7180d69d6ff1acebe77c2ee..b25ac87e5434e6d4f412ec7e932e18ee957aa839 100644 (file)
@@ -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);
    }