Lines Matching refs:bufsize
46 do_test(int bufsize, const char *expect, int elen, in do_test() argument
56 ret = vsnprintf(test_buffer, bufsize, fmt, aq); in do_test()
61 bufsize, fmt, ret, elen); in do_test()
66 pr_warn("vsnprintf(buf, %d, \"%s\", ...) wrote before buffer\n", bufsize, fmt); in do_test()
70 if (!bufsize) { in do_test()
79 written = min(bufsize-1, elen); in do_test()
82 bufsize, fmt); in do_test()
86 if (memchr_inv(test_buffer + written + 1, FILL_CHAR, bufsize - (written + 1))) { in do_test()
88 bufsize, fmt); in do_test()
92 if (memchr_inv(test_buffer + bufsize, FILL_CHAR, BUF_SIZE + PAD_SIZE - bufsize)) { in do_test()
93 pr_warn("vsnprintf(buf, %d, \"%s\", ...) wrote beyond buffer\n", bufsize, fmt); in do_test()
99 bufsize, fmt, test_buffer, written, expect); in do_test()