git://scm.lunaixsky.com
/
lunaix-os.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
feat: kprintf now goes into dedicated pseudo-dev rather than flooding the framebuffer
[lunaix-os.git]
/
lunaix-os
/
hal
/
pci.c
diff --git
a/lunaix-os/hal/pci.c
b/lunaix-os/hal/pci.c
index 1f6cc3d2b4b0687b2d9dc7dabad18bd135591d0b..3e4a3fefdee13be652758b2d26c966aa68467bdf 100644
(file)
--- a/
lunaix-os/hal/pci.c
+++ b/
lunaix-os/hal/pci.c
@@
-35,14
+35,14
@@
pci_log_device(struct pci_device* pcidev)
struct device_def* binddef = pcidev->binding.def;
if (!binddef) {
struct device_def* binddef = pcidev->binding.def;
if (!binddef) {
- kprintf("pci.%d:%d:%d, no binding
\n
",
+ kprintf("pci.%d:%d:%d, no binding",
PCILOC_BUS(loc),
PCILOC_DEV(loc),
PCILOC_FN(loc));
return;
}
PCILOC_BUS(loc),
PCILOC_DEV(loc),
PCILOC_FN(loc));
return;
}
- kprintf("pci.%d:%d:%d, dev.%xh:%xh.%d, %s
\n
",
+ kprintf("pci.%d:%d:%d, dev.%xh:%xh.%d, %s",
PCILOC_BUS(loc),
PCILOC_DEV(loc),
PCILOC_FN(loc),
PCILOC_BUS(loc),
PCILOC_DEV(loc),
PCILOC_FN(loc),
@@
-98,7
+98,7
@@
pci_create_device(pciaddr_t loc, ptr_t pci_base, int devinfo)
found:
if (!pos->devdef.bind) {
found:
if (!pos->devdef.bind) {
- kprintf(KERROR "pci_loc:%x, (%xh:%xh.%d) unbindable
\n
",
+ kprintf(KERROR "pci_loc:%x, (%xh:%xh.%d) unbindable",
loc,
pos->devdef.class.fn_grp,
pos->devdef.class.device,
loc,
pos->devdef.class.fn_grp,
pos->devdef.class.device,
@@
-108,7
+108,7
@@
found:
int errno = pos->devdef.bind(&pos->devdef, &device->dev);
if (errno) {
int errno = pos->devdef.bind(&pos->devdef, &device->dev);
if (errno) {
- kprintf(KERROR "pci_loc:%x, (%xh:%xh.%d) failed, e=%d
\n
",
+ kprintf(KERROR "pci_loc:%x, (%xh:%xh.%d) failed, e=%d",
loc,
pos->devdef.class.fn_grp,
pos->devdef.class.device,
loc,
pos->devdef.class.fn_grp,
pos->devdef.class.device,