misc: Remove generic PRINT macros from pci samples
Remove generic PRINT macros from pci samples and replace with SYS_LOG module. Jira: ZEP-240 Change-Id: I5a556637c441b1a4117eb75463d66f7127355a59 Signed-off-by: Juan Manuel Cruz Alcaraz <juan.m.cruz.alcaraz@intel.com>
This commit is contained in:
parent
a6412042fb
commit
a0007012b7
2 changed files with 5 additions and 9 deletions
|
@ -1,3 +1,4 @@
|
|||
CONFIG_STDOUT_CONSOLE=y
|
||||
CONFIG_PCI_ENUMERATION=y
|
||||
CONFIG_PCI_DEBUG=y
|
||||
CONFIG_SYS_LOG=y
|
||||
|
|
|
@ -20,13 +20,8 @@
|
|||
#include <stdint.h>
|
||||
#include <pci/pci.h>
|
||||
|
||||
#if defined(CONFIG_STDOUT_CONSOLE)
|
||||
#include <stdio.h>
|
||||
#define PRINT printf
|
||||
#else
|
||||
#include <misc/printk.h>
|
||||
#define PRINT printk
|
||||
#endif
|
||||
#define SYS_LOG_LEVEL SYS_LOG_LEVEL_INFO
|
||||
#include <misc/sys_log.h>
|
||||
|
||||
void pci_enumerate(void)
|
||||
{
|
||||
|
@ -59,7 +54,7 @@ void task_enum_pci(void)
|
|||
}
|
||||
|
||||
pci_enumerate();
|
||||
PRINT("Enumeration complete on %s", CONFIG_ARCH);
|
||||
SYS_LOG_INF("Enumeration complete on %s", CONFIG_ARCH);
|
||||
done = 1;
|
||||
}
|
||||
|
||||
|
@ -68,7 +63,7 @@ void task_enum_pci(void)
|
|||
void main(void)
|
||||
{
|
||||
pci_enumerate();
|
||||
PRINT("Enumeration complete on %s", CONFIG_ARCH);
|
||||
SYS_LOG_INF("Enumeration complete on %s", CONFIG_ARCH);
|
||||
}
|
||||
|
||||
#endif /* CONFIG_MICROKERNEL */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue