File tree Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change 1
1
CONFIG_STDOUT_CONSOLE=y
2
2
CONFIG_PCI_ENUMERATION=y
3
3
CONFIG_PCI_DEBUG=y
4
- CONFIG_SYS_LOG=y
Original file line number Diff line number Diff line change 20
20
#include <stdint.h>
21
21
#include <pci/pci.h>
22
22
23
- #define SYS_LOG_LEVEL SYS_LOG_LEVEL_INFO
24
- #include <misc/sys_log.h>
23
+ #if defined(CONFIG_STDOUT_CONSOLE )
24
+ #include <stdio.h>
25
+ #define PRINT printf
26
+ #else
27
+ #include <misc/printk.h>
28
+ #define PRINT printk
29
+ #endif
25
30
26
31
void pci_enumerate (void )
27
32
{
@@ -54,7 +59,7 @@ void task_enum_pci(void)
54
59
}
55
60
56
61
pci_enumerate ();
57
- SYS_LOG_INF ("Enumeration complete on %s" , CONFIG_ARCH );
62
+ PRINT ("Enumeration complete on %s" , CONFIG_ARCH );
58
63
done = 1 ;
59
64
}
60
65
@@ -63,7 +68,7 @@ void task_enum_pci(void)
63
68
void main (void )
64
69
{
65
70
pci_enumerate ();
66
- SYS_LOG_INF ("Enumeration complete on %s" , CONFIG_ARCH );
71
+ PRINT ("Enumeration complete on %s" , CONFIG_ARCH );
67
72
}
68
73
69
74
#endif /* CONFIG_MICROKERNEL */
You can’t perform that action at this time.
0 commit comments