Home
last modified time | relevance | path

Searched refs:snprintf (Results 1 – 25 of 209) sorted by relevance

123456789

/xnu-11417.121.6/osfmk/tests/
H A Dktest_emit.c72 ret = snprintf(msg, in ktest_emit_testbegin()
100 ret = snprintf(msg, in ktest_emit_testskip()
115 ret = snprintf(msg, size, "\n"); in ktest_emit_testskip()
130 ret = snprintf(msg, in ktest_emit_testend()
158 ret = snprintf(msg, in ktest_emit_log()
173 ret = snprintf(msg, size, "\n"); in ktest_emit_log()
190 ret = snprintf(msg, size, in ktest_emit_perfdata()
201 ret = snprintf(msg, size, perfstr, metric, print_value, unit, desc); in ktest_emit_perfdata()
204 ret = snprintf(msg, size, "\n"); in ktest_emit_perfdata()
219 ret = snprintf(msg, in ktest_emit_testcase()
[all …]
/xnu-11417.121.6/tests/vfs/
H A Dgetattrlist_mountextflags.c80 snprintf(diskurl, sizeof(diskurl), "/%s", diskid); in get_mount_path()
156 snprintf(args, sizeof(args), "diskutil eject %s", disk); in cleanup()
231 snprintf(image_path, sizeof(image_path), "%s/msdos.dmg", testdir);
234 snprintf(args, sizeof(args), "diskimagetool create -fs none -s 1m %s", image_path);
238 snprintf(args, sizeof(args), "diskimagetool attach --external %s", image_path);
246 snprintf(args, sizeof(args), "newfs_msdos -v MSDOS %s", disk);
250 snprintf(args, sizeof(args), "datest --mount --device %s", disk);
/xnu-11417.121.6/tools/tests/perf_index/
H A Dtest_file_helper.c38 snprintf(filepath, MAXPATHLEN, "%s/file_create-%d-%lld", path, thread_id, i); in test_file_create()
46 snprintf(filepath, MAXPATHLEN, "%s/file_create-%d-%lld", path, thread_id, i); in test_file_create()
69 snprintf(filepath, sizeof(filepath), "%s/file_read", path); in test_file_read_setup()
103 snprintf(filepath, sizeof(filepath), "%s/file_read", path); in test_file_read()
132 snprintf(filepath, sizeof(filepath), "%s/file_read", path); in test_file_read_cleanup()
151 snprintf(filepath, sizeof(filepath), "%s/file_write-%d", path, i); in test_file_write_setup()
204 snprintf(filepath, sizeof(filepath), "%s/file_write-%d", path, i); in test_file_write_cleanup()
H A Dramdisk.c20 snprintf(path, MAXPATHLEN, "/Volumes/%s", name); in setup_ram_volume()
/xnu-11417.121.6/libkern/net/
H A Dinet_ntoa.c40 snprintf(buf, sizeof(buf), "%d.%d.%d.%d", in inet_ntoa()
53 snprintf(buf, buflen, "%d.%d.%d.%d", in inet_ntoa_r()
/xnu-11417.121.6/libkern/c++/
H A DOSNumber.cpp252 snprintf(temp, sizeof(temp), "integer size=\"%d\"", size); in serialize()
259 snprintf(temp, sizeof(temp), "0x%lx%08lx", (unsigned long)(value >> 32), in serialize()
262 snprintf(temp, sizeof(temp), "0x%lx", (unsigned long)value); in serialize()
H A DOSSerialize.cpp104 snprintf(temp, sizeof(temp), "%u", tagIdx); in previouslySerialized()
138 snprintf(temp, sizeof(temp), "%u", tagIdx); in addXMLStartTag()
/xnu-11417.121.6/tests/
H A Dlocks.c22 snprintf(name, sizeof(name), "debug.test.%s", t); in run_sysctl_test()
58 snprintf(arg, sizeof(arg), "%d", ncpus); in clpc_set_core_count()
H A Ddebug_enable_syscall_rejection.c89 snprintf(binary_path, MAXPATHLEN, "%s/%s", binary_dir, helper_binary); in helper()
175 T_QUIET; T_ASSERT_GE_INT(snprintf(pos1, max_pos_len, "%u", i), 0, "creating pos1");
176 T_QUIET; T_ASSERT_GE_INT(snprintf(pos2, max_pos_len, "%u", i + 1), 0, "creating pos2");
H A Ddisk_mount_conditioner.c464 snprintf(cmd, sizeof(cmd), "hdik -nomount ram://10000 > %s", dev_disk_file); in mkramdisk()
470 snprintf(eject_cmd, sizeof(eject_cmd), "hdik -e `cat %s`", dev_disk_file); in mkramdisk()
476 snprintf(cmd, sizeof(cmd), "newfs_hfs `cat %s`", dev_disk_file); in mkramdisk()
480 snprintf(cmd, sizeof(cmd), "mount -t hfs `cat %s` %s", dev_disk_file, mount_path); in mkramdisk()
517 snprintf(temp_path, PATH_MAX, "%s/dmc.XXXXXXXX", mount_path); in perf_setup()
H A Dpersona.c26 snprintf(pinfo.persona_name, MAXLOGNAME, "persona_test.%s", uuid_string); in _create_persona()
88 snprintf(pinfo.persona_name, MAXLOGNAME, "persona_test.%s", uuid_string);
H A Din_cksum_test.c21 off = (unsigned)snprintf(buf, sizeof(buf), "%08x:", i); in log_hexdump()
23 …off += (unsigned)snprintf(buf + off, sizeof(buf) - off, " %02x", (((const uint8_t *)inp)[i]) & 0xf… in log_hexdump()
H A Dproc_core_name_24152432.c66 snprintf(buf, BUFFLEN, "%s %s", ls_path, dump_dir); in list_coredump_files()
121 snprintf(buf, BUFFLEN, format, pid); in look_for_coredump()
H A Dperf_exit.c161 snprintf(nthreads_buf, 32, "%d", test_cases[producer_i].threads);
162 snprintf(mem_buf, 32, "%d", test_cases[producer_i].wired_mem);
H A Dvm_sanitize.c18 snprintf(name, sizeof(name), "debug.test.%s", t); in run_sysctl_test()
H A Drecoverable_trap.c21 snprintf(name, sizeof(name), "debug.test.%s", t); in run_sysctl_test()
H A Dkalloc.c18 snprintf(name, sizeof(name), "debug.test.%s", t); in run_sysctl_test()
H A Dthread_test_context.c19 snprintf(name, sizeof(name), "debug.test.%s", t); in run_sysctl_test()
/xnu-11417.121.6/libkern/uuid/
H A Duuid.c164 snprintf(out, in uuid_unparse_lower()
181 snprintf(out, in uuid_unparse_upper()
/xnu-11417.121.6/bsd/kern/
H A Dkdebug_triage.c134 snprintf(buf, bufsz, "KTriage Error: Subsystem code %u is invalid\n", subsystem); in ktriage_convert_to_string()
144snprintf(buf, bufsz, "KTriage: Subsystem %d reported %u with argument 0x%lx\n", subsystem, strindx… in ktriage_convert_to_string()
148 snprintf(buf, bufsz, "%s(arg = 0x%lx) %s", subsystem_strings[0], arg, subsystem_strings[strindx]); in ktriage_convert_to_string()
/xnu-11417.121.6/bsd/net/
H A Ddroptap.c253 snprintf(dtaphdr.dth_dropfunc, sizeof(dtaphdr.dth_dropfunc), "%s", funcname); in droptap_input_packet()
279 snprintf(dtaphdr.dth_dropfunc, sizeof(dtaphdr.dth_dropfunc), "%s", funcname); in droptap_output_packet()
359 snprintf(dtaphdr.dth_dropfunc, sizeof(dtaphdr.dth_dropfunc), "%s", funcname); in droptap_input_mbuf()
388 snprintf(dtaphdr.dth_dropfunc, sizeof(dtaphdr.dth_dropfunc), "%s", funcname); in droptap_output_mbuf()
/xnu-11417.121.6/tests/ipc/
H A Dwaitq.c19 snprintf(name, sizeof(name), "debug.test.%s", t); in run_sysctl_test()
/xnu-11417.121.6/tests/vm/
H A Dvm_kern.c20 snprintf(name, sizeof(name), "debug.test.%s", t); in run_sysctl_test()
H A Dtest_vm_no_pager_helper.c101 snprintf(quiet_cmd, sizeof(quiet_cmd), "%s%s", cmd, verbose ? "" : " > /dev/null"); in my_system()
392 snprintf(partition_name, sizeof(partition_name), "%ss2", device_name); in create_disk_image()
399 snprintf(partition_name, sizeof(partition_name), "%s", device_name); in create_disk_image()
/xnu-11417.121.6/tests/iokit/
H A Dossymbol.c21 snprintf(name, sizeof(name), "debug.test.%s", t); in run_sysctl_test()

123456789