Lines Matching refs:stream
15 struct string_stream *stream) in kunit_assert_prologue() argument
28 string_stream_add(stream, "%s FAILED at %s:%d\n", in kunit_assert_prologue()
34 struct string_stream *stream) in kunit_assert_print_msg() argument
37 string_stream_add(stream, "\n%pV", message); in kunit_assert_print_msg()
42 struct string_stream *stream) in kunit_fail_assert_format() argument
44 string_stream_add(stream, "%pV", message); in kunit_fail_assert_format()
50 struct string_stream *stream) in kunit_unary_assert_format() argument
57 string_stream_add(stream, in kunit_unary_assert_format()
61 string_stream_add(stream, in kunit_unary_assert_format()
64 kunit_assert_print_msg(message, stream); in kunit_unary_assert_format()
70 struct string_stream *stream) in kunit_ptr_not_err_assert_format() argument
78 string_stream_add(stream, in kunit_ptr_not_err_assert_format()
82 string_stream_add(stream, in kunit_ptr_not_err_assert_format()
87 kunit_assert_print_msg(message, stream); in kunit_ptr_not_err_assert_format()
116 struct string_stream *stream) in kunit_binary_assert_format() argument
123 string_stream_add(stream, in kunit_binary_assert_format()
128 if (!is_literal(stream->test, binary_assert->text->left_text, in kunit_binary_assert_format()
129 binary_assert->left_value, stream->gfp)) in kunit_binary_assert_format()
130 string_stream_add(stream, KUNIT_SUBSUBTEST_INDENT "%s == %lld (0x%llx)\n", in kunit_binary_assert_format()
134 if (!is_literal(stream->test, binary_assert->text->right_text, in kunit_binary_assert_format()
135 binary_assert->right_value, stream->gfp)) in kunit_binary_assert_format()
136 string_stream_add(stream, KUNIT_SUBSUBTEST_INDENT "%s == %lld (0x%llx)", in kunit_binary_assert_format()
140 kunit_assert_print_msg(message, stream); in kunit_binary_assert_format()
146 struct string_stream *stream) in kunit_binary_ptr_assert_format() argument
153 string_stream_add(stream, in kunit_binary_ptr_assert_format()
158 string_stream_add(stream, KUNIT_SUBSUBTEST_INDENT "%s == %px\n", in kunit_binary_ptr_assert_format()
161 string_stream_add(stream, KUNIT_SUBSUBTEST_INDENT "%s == %px", in kunit_binary_ptr_assert_format()
164 kunit_assert_print_msg(message, stream); in kunit_binary_ptr_assert_format()
186 struct string_stream *stream) in kunit_binary_str_assert_format() argument
193 string_stream_add(stream, in kunit_binary_str_assert_format()
199 string_stream_add(stream, KUNIT_SUBSUBTEST_INDENT "%s == \"%s\"\n", in kunit_binary_str_assert_format()
203 string_stream_add(stream, KUNIT_SUBSUBTEST_INDENT "%s == \"%s\"", in kunit_binary_str_assert_format()
206 kunit_assert_print_msg(message, stream); in kunit_binary_str_assert_format()
213 static void kunit_assert_hexdump(struct string_stream *stream, in kunit_assert_hexdump() argument
222 string_stream_add(stream, KUNIT_SUBSUBTEST_INDENT); in kunit_assert_hexdump()
226 string_stream_add(stream, "\n" KUNIT_SUBSUBTEST_INDENT); in kunit_assert_hexdump()
229 string_stream_add(stream, "<%02x>", buf1[i]); in kunit_assert_hexdump()
231 string_stream_add(stream, " %02x ", buf1[i]); in kunit_assert_hexdump()
237 struct string_stream *stream) in kunit_mem_assert_format() argument
245 string_stream_add(stream, in kunit_mem_assert_format()
249 string_stream_add(stream, in kunit_mem_assert_format()
253 string_stream_add(stream, in kunit_mem_assert_format()
259 string_stream_add(stream, KUNIT_SUBSUBTEST_INDENT "%s ==\n", in kunit_mem_assert_format()
261 kunit_assert_hexdump(stream, mem_assert->left_value, in kunit_mem_assert_format()
264 string_stream_add(stream, "\n"); in kunit_mem_assert_format()
266 string_stream_add(stream, KUNIT_SUBSUBTEST_INDENT "%s ==\n", in kunit_mem_assert_format()
268 kunit_assert_hexdump(stream, mem_assert->right_value, in kunit_mem_assert_format()
271 kunit_assert_print_msg(message, stream); in kunit_mem_assert_format()