函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\test_printf.c Create Date:2022-07-27 07:30:01
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:__test

函数原型:static void __printf(3, 4) __init __test(const char *expect, int elen, const char *fmt, ...)

返回类型:void

参数:

类型参数名称
const char *expect
intelen
const char *fmt
100  如果elen大于等于BUF_SIZE
101  打印错误信息("error in test suite: expected output length %d too long. Format was '%s'.\n", elen, fmt)
103  failed_tests自加
104  返回
107  va_start(ap, fmt)
115  failed_tests加等于do_test(BUF_SIZE, expect, elen, fmt, ap)
116  rand等于1加prandom_u32_max - returns a pseudo-random number in interval [0, ep_ro)*@ep_ro: right open interval endpoint* Returns a pseudo-random number that is in interval [0, ep_ro). Note* that the result depends on PRNG being well distributed in [0, ~0U]
118  failed_tests加等于do_test(rand, expect, elen, fmt, ap)
119  failed_tests加等于do_test(0, expect, elen, fmt, ap)
121  p等于Simplified asprintf.
122  如果p
123  total_tests自加
124  如果memcmp(p, expect, elen + 1)则
125  打印警告信息("kvasprintf(..., \"%s\", ...) returned '%s', expected '%s'\n", fmt, p, expect)
127  failed_tests自加
129  kfree(p)
131  va_end(ap)
调用者
名称描述
test_basic