We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bce5b8d commit a93c40aCopy full SHA for a93c40a
app/src/main.c
@@ -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
-}
+/*
+ * Copyright (c) 2012-2014 Wind River Systems, Inc.
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ */
+#include <zephyr/logging/log.h>
+
+LOG_MODULE_REGISTER(main);
+int main(void)
+{
+ LOG_INF("Hello World! %s\n", CONFIG_BOARD);
+ return 0;
14
+}
0 commit comments