Home
last modified time | relevance | path

Searched refs:fmt (Results 1 – 25 of 62) sorted by relevance

123

/lib/
Dvsprintf.c921 const char *fmt) in dentry_name() argument
928 switch (fmt[1]) { in dentry_name()
930 depth = fmt[1] - '0'; in dentry_name()
970 struct printf_spec spec, const char *fmt) in file_dentry_name() argument
975 return dentry_name(buf, end, f->f_path.dentry, spec, fmt); in file_dentry_name()
980 struct printf_spec spec, const char *fmt) in bdev_name() argument
1003 struct printf_spec spec, const char *fmt) in symbol_string() argument
1010 if (fmt[1] == 'R') in symbol_string()
1015 if (*fmt == 'B' && fmt[1] == 'b') in symbol_string()
1017 else if (*fmt == 'B') in symbol_string()
[all …]
Dkasprintf.c15 char *kvasprintf(gfp_t gfp, const char *fmt, va_list ap) in kvasprintf() argument
22 first = vsnprintf(NULL, 0, fmt, aq); in kvasprintf()
29 second = vsnprintf(p, first+1, fmt, ap); in kvasprintf()
31 first, second, fmt); in kvasprintf()
43 const char *kvasprintf_const(gfp_t gfp, const char *fmt, va_list ap) in kvasprintf_const() argument
45 if (!strchr(fmt, '%')) in kvasprintf_const()
46 return kstrdup_const(fmt, gfp); in kvasprintf_const()
47 if (!strcmp(fmt, "%s")) in kvasprintf_const()
49 return kvasprintf(gfp, fmt, ap); in kvasprintf_const()
53 char *kasprintf(gfp_t gfp, const char *fmt, ...) in kasprintf() argument
[all …]
Dtest_printf.c6 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt argument
42 const char *fmt, va_list ap) in do_test() argument
51 ret = vsnprintf(test_buffer, bufsize, fmt, aq); in do_test()
56 bufsize, fmt, ret, elen); in do_test()
61 pr_warn("vsnprintf(buf, %d, \"%s\", ...) wrote before buffer\n", bufsize, fmt); in do_test()
68 fmt); in do_test()
77 bufsize, fmt); in do_test()
83 bufsize, fmt); in do_test()
89 bufsize, fmt, test_buffer, written, expect); in do_test()
96 __test(const char *expect, int elen, const char *fmt, ...) in __test() argument
[all …]
Dtest_scanf.c6 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt argument
28 const char *fmt, int n_args, va_list ap);
31 _test(check_fn fn, const void *check_data, const char *string, const char *fmt, in _test() argument
41 ret = vsscanf(string, fmt, ap_copy); in _test()
46 string, fmt, ret, n_args); in _test()
50 ret = (*fn)(check_data, string, fmt, n_args, ap); in _test()
63 #define _check_numbers_template(arg_fmt, expect, str, fmt, n_args, ap) \ argument
65 pr_debug("\"%s\", \"%s\" ->\n", str, fmt); \
71 str, fmt, *expect, got); \
79 const char *fmt, int n_args, va_list ap) in check_ull() argument
[all …]
Ddynamic_debug.c14 #define pr_fmt(fmt) "dyndbg: " fmt argument
113 #define vnpr_info(lvl, fmt, ...) \ argument
116 pr_info(fmt, ##__VA_ARGS__); \
119 #define vpr_info(fmt, ...) vnpr_info(1, fmt, ##__VA_ARGS__) argument
120 #define v2pr_info(fmt, ...) vnpr_info(2, fmt, ##__VA_ARGS__) argument
601 void __dynamic_pr_debug(struct _ddebug *descriptor, const char *fmt, ...) in __dynamic_pr_debug() argument
608 BUG_ON(!fmt); in __dynamic_pr_debug()
610 va_start(args, fmt); in __dynamic_pr_debug()
612 vaf.fmt = fmt; in __dynamic_pr_debug()
622 const struct device *dev, const char *fmt, ...) in __dynamic_dev_dbg() argument
[all …]
Dseq_buf.c57 int seq_buf_vprintf(struct seq_buf *s, const char *fmt, va_list args) in seq_buf_vprintf() argument
64 len = vsnprintf(s->buffer + s->len, s->size - s->len, fmt, args); in seq_buf_vprintf()
83 int seq_buf_printf(struct seq_buf *s, const char *fmt, ...) in seq_buf_printf() argument
88 va_start(ap, fmt); in seq_buf_printf()
89 ret = seq_buf_vprintf(s, fmt, ap); in seq_buf_printf()
114 int seq_buf_bprintf(struct seq_buf *s, const char *fmt, const u32 *binary) in seq_buf_bprintf() argument
122 ret = bstr_printf(s->buffer + s->len, len, fmt, binary); in seq_buf_bprintf()
Dtest-kstrtox.c26 #define TEST_FAIL(fn, type, fmt, test) \ argument
38 WARN(1, "str '%s', base %u, expected -E, got %d/" fmt "\n", \
45 #define TEST_OK(fn, type, fmt, test) \ argument
56 WARN(1, "str '%s', base %u, expected 0/" fmt ", got %d\n", \
61 WARN(1, "str '%s', base %u, expected " fmt ", got " fmt "\n", \
Ddump_stack.c30 void __init dump_stack_set_arch_desc(const char *fmt, ...) in dump_stack_set_arch_desc() argument
34 va_start(args, fmt); in dump_stack_set_arch_desc()
36 fmt, args); in dump_stack_set_arch_desc()
Dtest_stackinit.c11 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt argument
30 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt argument
31 #define pr_err(fmt, ...) fprintf(stderr, pr_fmt(fmt), ##__VA_ARGS__) argument
32 #define pr_warn(fmt, ...) fprintf(stderr, pr_fmt(fmt), ##__VA_ARGS__) argument
33 #define pr_info(fmt, ...) fprintf(stdout, pr_fmt(fmt), ##__VA_ARGS__) argument
Dtest_module.c11 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt argument
Dtest_overflow.c5 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt argument
218 #define check_one_op(t, fmt, op, sym, a, b, r, of) do { \ argument
224 pr_warn("expected "fmt" "sym" "fmt \
230 pr_warn("expected "fmt" "sym" "fmt" == " \
231 fmt", got "fmt" (type %s)\n", \
237 #define DEFINE_TEST_FUNC(t, fmt) \ argument
242 check_one_op(t, fmt, add, "+", p->a, p->b, p->sum, p->s_of); \
243 check_one_op(t, fmt, add, "+", p->b, p->a, p->sum, p->s_of); \
244 check_one_op(t, fmt, sub, "-", p->a, p->b, p->diff, p->d_of); \
245 check_one_op(t, fmt, mul, "*", p->a, p->b, p->prod, p->p_of); \
[all …]
Dkobject.c289 int kobject_set_name_vargs(struct kobject *kobj, const char *fmt, in kobject_set_name_vargs() argument
294 if (kobj->name && !fmt) in kobject_set_name_vargs()
297 s = kvasprintf_const(GFP_KERNEL, fmt, vargs); in kobject_set_name_vargs()
332 int kobject_set_name(struct kobject *kobj, const char *fmt, ...) in kobject_set_name() argument
337 va_start(vargs, fmt); in kobject_set_name()
338 retval = kobject_set_name_vargs(kobj, fmt, vargs); in kobject_set_name()
388 const char *fmt, va_list vargs) in kobject_add_varg() argument
392 retval = kobject_set_name_vargs(kobj, fmt, vargs); in kobject_add_varg()
435 const char *fmt, ...) in kobject_add() argument
449 va_start(args, fmt); in kobject_add()
[all …]
Dtest_free_pages.c8 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt argument
Dcmdline_kunit.c43 const char *fmt = "Pattern: %s"; in cmdline_do_one_test() local
50 KUNIT_EXPECT_EQ_MSG(test, ret, rc, fmt, in); in cmdline_do_one_test()
51 KUNIT_EXPECT_PTR_EQ_MSG(test, out, in + offset, fmt, in); in cmdline_do_one_test()
Dcrc8.c17 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt argument
Dtest_bitops.c6 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt argument
/lib/kunit/
Dstring-stream.c74 const char *fmt, in string_stream_vadd() argument
85 len = vsnprintf(NULL, 0, fmt, args_for_counting) + 1; in string_stream_vadd()
95 len = vsnprintf(frag_container->fragment, len, fmt, args); in string_stream_vadd()
104 int string_stream_add(struct string_stream *stream, const char *fmt, ...) in string_stream_add() argument
109 va_start(args, fmt); in string_stream_add()
110 result = string_stream_vadd(stream, fmt, args); in string_stream_add()
Dtest.c25 void __kunit_fail_current_test(const char *file, int line, const char *fmt, ...) in __kunit_fail_current_test() argument
37 va_start(args, fmt); in __kunit_fail_current_test()
38 len = vsnprintf(NULL, 0, fmt, args) + 1; in __kunit_fail_current_test()
45 va_start(args, fmt); in __kunit_fail_current_test()
46 vsnprintf(buffer, len, fmt, args); in __kunit_fail_current_test()
104 void kunit_log_append(char *log, const char *fmt, ...) in kunit_log_append() argument
117 va_start(args, fmt); in kunit_log_append()
118 vsnprintf(line, sizeof(line), fmt, args); in kunit_log_append()
281 const char *fmt, ...) in kunit_do_assertion() argument
288 va_start(args, fmt); in kunit_do_assertion()
[all …]
Dstring-stream.h36 const char *fmt, ...);
39 const char *fmt,
/lib/livepatch/
Dtest_klp_callbacks_mod.c4 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt argument
Dtest_klp_livepatch.c4 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt argument
Dtest_klp_atomic_replace.c4 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt argument
Dtest_klp_callbacks_busy.c4 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt argument
Dtest_klp_callbacks_demo2.c4 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt argument
Dtest_klp_callbacks_demo.c4 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt argument

123