Function report |
Source Code:lib\test_printf.c |
Create Date:2022-07-28 06:32:28 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:do_test
Proto:static int __printf(4, 0) __init do_test(int bufsize, const char *expect, int elen, const char *fmt, va_list ap)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
int | bufsize | |
const char * | expect | |
int | elen | |
const char * | fmt | |
va_list | ap |
45 | total_tests++ |
47 | memset(alloced_buffer, FILL_CHAR, BUF_SIZE + 2 * PAD_SIZE) |
55 | Return 1 |
63 | If Not bufsize Then |
69 | Return 0 |
72 | written = min - return minimum of two values of the same or compatible types*@x: first value*@y: second value(bufsize - 1, elen) |
73 | If test_buffer[written] Then |
76 | Return 1 |
82 | Return 1 |
85 | If memcmp(test_buffer, expect, written) Then |
86 | pr_warn("vsnprintf(buf, %d, \"%s\", ...) wrote '%s', expected '%.*s'\n", bufsize, fmt, test_buffer, written, expect) |
88 | Return 1 |
90 | Return 0 |
Name | Describe |
---|---|
__test |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |