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);
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);
}