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:05
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:test_string_get_size_check

Proto:static __init void test_string_get_size_check(const char *units, const char *exp, char *res, const u64 size, const u64 blk_size)

Type:void

Parameter:

TypeParameterName
const char *units
const char *exp
char *res
const u64size
const u64blk_size
345  If Not memcmp(res, exp, strlen(exp) + 1) Then Return
348  res[string_get_size_maxbuf - 1] = '\0'
350  pr_warn("Test 'test_string_get_size' failed!\n")
351  pr_warn("string_get_size(size = %llu, blk_size = %llu, units = %s)\n", size, blk_size, units)
353  pr_warn("expected: '%s', got '%s'\n", exp, res)
Caller
NameDescribe
__test_string_get_size