Skip to content

Commit d045bd7

Browse files
Andrew Boieandrewboie
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 05212e8 commit d045bd7

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
@@ -46,13 +46,15 @@ static void _printk_hex_ulong(out_func_t out, void *ctx,
4646
*
4747
* @return 0
4848
*/
49+
/* LCOV_EXCL_START */
4950
__attribute__((weak)) int z_arch_printk_char_out(int c)
5051
{
5152
ARG_UNUSED(c);
5253

5354
/* do nothing */
5455
return 0;
5556
}
57+
/* LCOV_EXCL_STOP */
5658

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

0 commit comments

Comments
 (0)