Home
last modified time | relevance | path

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

/lib/
Dtest_printf.c227 nchars = snprintf(buf, PLAIN_BUF_SIZE, "%p", PTR); in plain_format()
267 nchars = snprintf(buf, len, "%p", p); in plain_hash_to_buffer()
620 snprintf(cmp_buf + size, BUF_SIZE - size, "%s", name); in page_flags_test()
625 snprintf(cmp_buf + size, BUF_SIZE - size, "|"); in page_flags_test()
639 snprintf(cmp_buf + size, BUF_SIZE - size, "|"); in page_flags_test()
644 snprintf(cmp_buf + size, BUF_SIZE - size, "%s=", pft[i].name); in page_flags_test()
646 snprintf(cmp_buf + size, BUF_SIZE - size, pft[i].fmt, in page_flags_test()
692 snprintf(cmp_buffer, BUF_SIZE, "%#lx", (unsigned long) gfp); in flags()
695 snprintf(cmp_buffer, BUF_SIZE, "__GFP_ATOMIC|%#lx", in flags()
Doid_registry.c142 ret = count = snprintf(buffer, bufsize, "%u.%u", n / 40, n % 40); in sprint_oid()
163 ret += count = snprintf(buffer, bufsize, ".%lu", num); in sprint_oid()
173 snprintf(buffer, bufsize, "(bad)"); in sprint_oid()
Dhexdump.c160 ret = snprintf(linebuf + lx, linebuflen - lx, in hex_dump_to_buffer()
171 ret = snprintf(linebuf + lx, linebuflen - lx, in hex_dump_to_buffer()
182 ret = snprintf(linebuf + lx, linebuflen - lx, in hex_dump_to_buffer()
Dtest_kmod.c469 len += snprintf(buf, PAGE_SIZE, in config_show()
473 len += snprintf(buf+len, PAGE_SIZE - len, in config_show()
477 len += snprintf(buf+len, PAGE_SIZE - len, in config_show()
483 len += snprintf(buf+len, PAGE_SIZE - len, in config_show()
487 len += snprintf(buf+len, PAGE_SIZE - len, in config_show()
491 len += snprintf(buf+len, PAGE_SIZE - len, in config_show()
495 len += snprintf(buf+len, PAGE_SIZE - len, in config_show()
681 len = snprintf(dst, PAGE_SIZE, "%s\n", src); in config_test_show_str()
960 return snprintf(buf, PAGE_SIZE, "%d\n", val); in test_dev_config_show_int()
973 return snprintf(buf, PAGE_SIZE, "%u\n", val); in test_dev_config_show_uint()
Ddynamic_debug.c571 pos += snprintf(buf + pos, remaining(pos), "<intr> "); in __dynamic_emit_prefix()
573 pos += snprintf(buf + pos, remaining(pos), "[%d] ", in __dynamic_emit_prefix()
578 pos += snprintf(buf + pos, remaining(pos), "%s:", in __dynamic_emit_prefix()
581 pos += snprintf(buf + pos, remaining(pos), "%s:", in __dynamic_emit_prefix()
584 pos += snprintf(buf + pos, remaining(pos), "%d:", in __dynamic_emit_prefix()
587 pos += snprintf(buf + pos, remaining(pos), " "); in __dynamic_emit_prefix()
Dcrc-t10dif.c120 len = snprintf(buffer, PAGE_SIZE, "%s\n", in crc_t10dif_transform_show()
Dtest_firmware.c318 len = snprintf(dst, PAGE_SIZE, "%s\n", src); in config_test_show_str()
351 return snprintf(buf, PAGE_SIZE, "%d\n", val); in test_dev_config_show_bool()
374 return snprintf(buf, PAGE_SIZE, "%zu\n", val); in test_dev_config_show_size_t()
379 return snprintf(buf, PAGE_SIZE, "%d\n", val); in test_dev_config_show_int()
410 return snprintf(buf, PAGE_SIZE, "%u\n", val); in test_dev_config_show_u8()
Dstring_helpers.c118 snprintf(tmp, sizeof(tmp), ".%03u", remainder); in string_get_size()
128 snprintf(buf, len, "%u%s %s", (u32)size, in string_get_size()
Dtest_scanf.c198 snprintf(test_buffer, BUF_SIZE, gen_fmt, expect_val); \
376 snprintf(full_fmt, sizeof(full_fmt), "%u%s", width, scan_fmt); \
690 len = snprintf(test_buffer, BUF_SIZE, gen_fmt, expect); \
Dbootconfig.c249 ret = snprintf(buf, size, "%s%s", xbc_node_get_data(node), in xbc_node_compose_key_after()
Dkobject_uevent.c691 ret = snprintf(buf, sizeof(buf), "SEQNUM=%llu", ++uevent_seqnum); in uevent_net_broadcast()
Dtest_bitmap.c92 snprintf(pbl_buffer, sizeof(pbl_buffer), "%*pbl", nbits, bitmap); in __check_eq_pbl()
Dvsprintf.c2938 int snprintf(char *buf, size_t size, const char *fmt, ...) in snprintf() function
2949 EXPORT_SYMBOL(snprintf);
/lib/842/
D842_debugfs.h29 snprintf(name, 32, "template_%02x", i); in sw842_debugfs_create()
/lib/kunit/
Dassert.c99 len = snprintf(NULL, 0, "%lld", value); in is_literal()
107 snprintf(buffer, len+1, "%lld", value); in is_literal()
Dtest.c520 snprintf(param_desc, sizeof(param_desc), in kunit_run_tests()