Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:kunit_ptr_not_err_assert_format

Proto:void kunit_ptr_not_err_assert_format(const struct kunit_assert *assert, struct string_stream *stream)

Type:void

Parameter:

TypeParameterName
const struct kunit_assert *assert
struct string_stream *stream
63  ptr_assert = container_of - cast a member of a structure out to the containing structure*@ptr: the pointer to the member.*@type: the type of the container struct this is embedded in.*@member: the name of the member within the struct.(assert, structkunit_ptr_not_err_assert, assert)
66  SPDX-License-Identifier: GPL-2.0
67  If Not value Then
68  string_stream_add(stream, "\tExpected %s is not null, but is\n", text)
71  Else if IS_ERR(value) Then
72  string_stream_add(stream, "\tExpected %s is not error, but is: %ld\n", text, PTR_ERR(value))
77  kunit_assert_print_msg(assert, stream)