Lines Matching refs:fmt
6 #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
100 elen, fmt); in __test()
105 va_start(ap, fmt); in __test()
113 failed_tests += do_test(BUF_SIZE, expect, elen, fmt, ap); in __test()
116 failed_tests += do_test(rand, expect, elen, fmt, ap); in __test()
117 failed_tests += do_test(0, expect, elen, fmt, ap); in __test()
119 p = kvasprintf(GFP_KERNEL, fmt, ap); in __test()
124 fmt, p, expect); in __test()
132 #define test(expect, fmt, ...) \ argument
133 __test(expect, strlen(expect), fmt, ##__VA_ARGS__)
315 test_hashed(const char *fmt, const void *p) in test_hashed() argument
328 test(buf, fmt, p); in test_hashed()