Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:kunit_print_string_stream

Proto:static void kunit_print_string_stream(struct kunit *test, struct string_stream *stream)

Type:void

Parameter:

TypeParameterName
struct kunit *test
struct string_stream *stream
103  buf = string_stream_get_string(stream)
104  If Not buf Then
105  kunit_err() - Prints an ERROR level message associated with @test.*@test: The test context object.*@fmt: A printk() style format string.* Prints an error level message.(test, "Could not allocate buffer, dumping stream:\n")
108  kunit_err() - Prints an ERROR level message associated with @test.*@test: The test context object.*@fmt: A printk() style format string.* Prints an error level message.(test, "%s", fragment)
110  kunit_err() - Prints an ERROR level message associated with @test.*@test: The test context object.*@fmt: A printk() style format string.* Prints an error level message.(test, "\n")
111  Else
112  kunit_err() - Prints an ERROR level message associated with @test.*@test: The test context object.*@fmt: A printk() style format string.* Prints an error level message.(test, "%s", buf)
113  kunit_kfree(test, buf)
Caller
NameDescribe
kunit_fail