Skip to content

Commit db50b4e

Browse files
Andrew Boienashif
authored andcommitted
lib: os: exclude z_arch_printk_char_out()
This function doesn't do anything, and only exists so that it can be overridden later, exclude from coverage reports. Signed-off-by: Andrew Boie <[email protected]>
1 parent d3ca4bd commit db50b4e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/os/printk.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,15 @@ static void _printk_hex_ulong(out_func_t out, void *ctx,
4545
*
4646
* @return 0
4747
*/
48+
/* LCOV_EXCL_START */
4849
__attribute__((weak)) int z_arch_printk_char_out(int c)
4950
{
5051
ARG_UNUSED(c);
5152

5253
/* do nothing */
5354
return 0;
5455
}
56+
/* LCOV_EXCL_STOP */
5557

5658
int (*_char_out)(int) = z_arch_printk_char_out;
5759

0 commit comments

Comments
 (0)