/lib/ |
D | test_printf.c | 227 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()
|
D | oid_registry.c | 142 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()
|
D | hexdump.c | 160 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()
|
D | test_kmod.c | 469 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()
|
D | dynamic_debug.c | 571 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()
|
D | crc-t10dif.c | 120 len = snprintf(buffer, PAGE_SIZE, "%s\n", in crc_t10dif_transform_show()
|
D | test_firmware.c | 318 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()
|
D | string_helpers.c | 118 snprintf(tmp, sizeof(tmp), ".%03u", remainder); in string_get_size() 128 snprintf(buf, len, "%u%s %s", (u32)size, in string_get_size()
|
D | test_scanf.c | 198 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); \
|
D | bootconfig.c | 249 ret = snprintf(buf, size, "%s%s", xbc_node_get_data(node), in xbc_node_compose_key_after()
|
D | kobject_uevent.c | 691 ret = snprintf(buf, sizeof(buf), "SEQNUM=%llu", ++uevent_seqnum); in uevent_net_broadcast()
|
D | test_bitmap.c | 92 snprintf(pbl_buffer, sizeof(pbl_buffer), "%*pbl", nbits, bitmap); in __check_eq_pbl()
|
D | vsprintf.c | 2938 int snprintf(char *buf, size_t size, const char *fmt, ...) in snprintf() function 2949 EXPORT_SYMBOL(snprintf);
|
/lib/842/ |
D | 842_debugfs.h | 29 snprintf(name, 32, "template_%02x", i); in sw842_debugfs_create()
|
/lib/kunit/ |
D | assert.c | 99 len = snprintf(NULL, 0, "%lld", value); in is_literal() 107 snprintf(buffer, len+1, "%lld", value); in is_literal()
|
D | test.c | 520 snprintf(param_desc, sizeof(param_desc), in kunit_run_tests()
|