Skip to content

Commit a93c40a

Browse files
[CXRD-17] user logging backend for better control
- replace printf with log api Signed-off-by: Anuj Pathak <[email protected]>
1 parent bce5b8d commit a93c40a

File tree

1 file changed

+14
-13
lines changed

1 file changed

+14
-13
lines changed

app/src/main.c

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
1-
/*
2-
* Copyright (c) 2012-2014 Wind River Systems, Inc.
3-
*
4-
* SPDX-License-Identifier: Apache-2.0
5-
*/
6-
7-
#include <stdio.h>
8-
9-
int main(void)
10-
{
11-
printf("Hello World! %s\n", CONFIG_BOARD);
12-
return 0;
13-
}
1+
/*
2+
* Copyright (c) 2012-2014 Wind River Systems, Inc.
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
#include <zephyr/logging/log.h>
7+
8+
LOG_MODULE_REGISTER(main);
9+
10+
int main(void)
11+
{
12+
LOG_INF("Hello World! %s\n", CONFIG_BOARD);
13+
return 0;
14+
}

0 commit comments

Comments
 (0)