Revert "misc: Remove generic PRINT macros from pci samples"
This reverts commit a0007012b7
.
Change-Id: I72f4b8adfc33c833116fef9fc1cd8c542f3979b0
Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
This commit is contained in:
parent
83298d8020
commit
03c40a2685
2 changed files with 9 additions and 5 deletions
|
@ -1,4 +1,3 @@
|
|||
CONFIG_STDOUT_CONSOLE=y
|
||||
CONFIG_PCI_ENUMERATION=y
|
||||
CONFIG_PCI_DEBUG=y
|
||||
CONFIG_SYS_LOG=y
|
||||
|
|
|
@ -20,8 +20,13 @@
|
|||
#include <stdint.h>
|
||||
#include <pci/pci.h>
|
||||
|
||||
#define SYS_LOG_LEVEL SYS_LOG_LEVEL_INFO
|
||||
#include <misc/sys_log.h>
|
||||
#if defined(CONFIG_STDOUT_CONSOLE)
|
||||
#include <stdio.h>
|
||||
#define PRINT printf
|
||||
#else
|
||||
#include <misc/printk.h>
|
||||
#define PRINT printk
|
||||
#endif
|
||||
|
||||
void pci_enumerate(void)
|
||||
{
|
||||
|
@ -54,7 +59,7 @@ void task_enum_pci(void)
|
|||
}
|
||||
|
||||
pci_enumerate();
|
||||
SYS_LOG_INF("Enumeration complete on %s", CONFIG_ARCH);
|
||||
PRINT("Enumeration complete on %s", CONFIG_ARCH);
|
||||
done = 1;
|
||||
}
|
||||
|
||||
|
@ -63,7 +68,7 @@ void task_enum_pci(void)
|
|||
void main(void)
|
||||
{
|
||||
pci_enumerate();
|
||||
SYS_LOG_INF("Enumeration complete on %s", CONFIG_ARCH);
|
||||
PRINT("Enumeration complete on %s", CONFIG_ARCH);
|
||||
}
|
||||
|
||||
#endif /* CONFIG_MICROKERNEL */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue