Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\test-string_helpers.c Create Date:2022-07-28 06:26:01
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:test_string_check_buf

Proto:static __init bool test_string_check_buf(const char *name, unsigned int flags, char *in, size_t p, char *out_real, size_t q_real, char *out_test, size_t q_test)

Type:bool

Parameter:

TypeParameterName
const char *name
unsigned intflags
char *in
size_tp
char *out_real
size_tq_real
char *out_test
size_tq_test
19  If q_real == q_test && Not memcmp(out_test, out_real, q_test) Then Return true
22  pr_warn("Test '%s' failed: flags = %u\n", name, flags)
24  print_hex_dump(warning conditions , "Input: ", DUMP_PREFIX_NONE, 16, 1, in, p, true)
26  print_hex_dump(warning conditions , "Expected: ", DUMP_PREFIX_NONE, 16, 1, out_test, q_test, true)
28  print_hex_dump(warning conditions , "Got: ", DUMP_PREFIX_NONE, 16, 1, out_real, q_real, true)
31  Return false
Caller
NameDescribe
test_string_unescape
test_string_escape