Home
last modified time | relevance | path

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

12

/lib/
Dvsprintf.c843 const char *fmt) in dentry_name() argument
850 switch (fmt[1]) { in dentry_name()
852 depth = fmt[1] - '0'; in dentry_name()
892 struct printf_spec spec, const char *fmt) in file_dentry_name() argument
897 return dentry_name(buf, end, f->f_path.dentry, spec, fmt); in file_dentry_name()
902 struct printf_spec spec, const char *fmt) in bdev_name() argument
925 struct printf_spec spec, const char *fmt) in symbol_string() argument
932 if (fmt[1] == 'R') in symbol_string()
937 if (*fmt == 'B') in symbol_string()
939 else if (*fmt != 'f' && *fmt != 's') 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
38 const char *fmt, va_list ap) in do_test() argument
47 ret = vsnprintf(test_buffer, bufsize, fmt, aq); in do_test()
52 bufsize, fmt, ret, elen); in do_test()
57 pr_warn("vsnprintf(buf, %d, \"%s\", ...) wrote before buffer\n", bufsize, fmt); in do_test()
64 fmt); in do_test()
73 bufsize, fmt); in do_test()
79 bufsize, fmt); in do_test()
85 bufsize, fmt, test_buffer, written, expect); in do_test()
92 __test(const char *expect, int elen, const char *fmt, ...) in __test() argument
[all …]
Ddynamic_debug.c14 #define pr_fmt(fmt) KBUILD_MODNAME ":%s: " fmt, __func__ argument
108 #define vpr_info(fmt, ...) \ argument
111 pr_info(fmt, ##__VA_ARGS__); \
553 void __dynamic_pr_debug(struct _ddebug *descriptor, const char *fmt, ...) in __dynamic_pr_debug() argument
560 BUG_ON(!fmt); in __dynamic_pr_debug()
562 va_start(args, fmt); in __dynamic_pr_debug()
564 vaf.fmt = fmt; in __dynamic_pr_debug()
574 const struct device *dev, const char *fmt, ...) in __dynamic_dev_dbg() argument
580 BUG_ON(!fmt); in __dynamic_dev_dbg()
582 va_start(args, fmt); in __dynamic_dev_dbg()
[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()
113 int seq_buf_bprintf(struct seq_buf *s, const char *fmt, const u32 *binary) in seq_buf_bprintf() argument
121 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", \
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 …]
Ddump_stack.c28 void __init dump_stack_set_arch_desc(const char *fmt, ...) in dump_stack_set_arch_desc() argument
32 va_start(args, fmt); in dump_stack_set_arch_desc()
34 fmt, args); in dump_stack_set_arch_desc()
Dtest_module.c11 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt argument
Dkobject.c281 int kobject_set_name_vargs(struct kobject *kobj, const char *fmt, in kobject_set_name_vargs() argument
286 if (kobj->name && !fmt) in kobject_set_name_vargs()
289 s = kvasprintf_const(GFP_KERNEL, fmt, vargs); in kobject_set_name_vargs()
324 int kobject_set_name(struct kobject *kobj, const char *fmt, ...) in kobject_set_name() argument
329 va_start(vargs, fmt); in kobject_set_name()
330 retval = kobject_set_name_vargs(kobj, fmt, vargs); in kobject_set_name()
380 const char *fmt, va_list vargs) in kobject_add_varg() argument
384 retval = kobject_set_name_vargs(kobj, fmt, vargs); in kobject_add_varg()
427 const char *fmt, ...) in kobject_add() argument
441 va_start(args, fmt); in kobject_add()
[all …]
Dcrc8.c17 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt argument
Dtest_sysctl.c25 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt argument
Dtest_strscpy.c3 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt argument
Dtest_siphash.c15 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt argument
Dtest_uuid.c4 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt argument
Dtest_memcat_p.c5 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt argument
Dtest_bitfield.c6 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt argument
Dtest_list_sort.c2 #define pr_fmt(fmt) "list_sort_test: " fmt argument
Dbug.c42 #define pr_fmt(fmt) fmt argument
/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_callbacks_busy.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_demo2.c4 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt argument
Dtest_klp_callbacks_demo.c4 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt argument

12