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
/
kernel
/
block
/
block.c
diff --git
a/lunaix-os/kernel/block/block.c
b/lunaix-os/kernel/block/block.c
index c78cd26a1e522b1679c760c0c69caa2eb0d204f9..3f3c1e8ab647905375a0efb1acec730a8fbdbc98 100644
(file)
--- a/
lunaix-os/kernel/block/block.c
+++ b/
lunaix-os/kernel/block/block.c
@@
-1,4
+1,4
@@
-#include <klibc/st
dio
.h>
+#include <klibc/st
rfmt
.h>
#include <klibc/string.h>
#include <hal/ahci/hba.h>
#include <klibc/string.h>
#include <hal/ahci/hba.h>
@@
-295,7
+295,7
@@
block_mount(struct block_dev* bdev, devfs_exporter fs_export)
errno = blkpart_probegpt(bdev->dev);
if (errno < 0) {
errno = blkpart_probegpt(bdev->dev);
if (errno < 0) {
- kprintf(KERROR "Fail to parse partition table (%d)
\n
", errno);
+ kprintf(KERROR "Fail to parse partition table (%d)", errno);
} else if (!errno) {
// TODO try other PT parser...
}
} else if (!errno) {
// TODO try other PT parser...
}
@@
-307,7
+307,7
@@
block_mount(struct block_dev* bdev, devfs_exporter fs_export)
return errno;
error:
return errno;
error:
- kprintf(KERROR "Fail to mount block device: %s (%x)
\n
", bdev->name, -errno);
+ kprintf(KERROR "Fail to mount block device: %s (%x)", bdev->name, -errno);
return errno;
}
return errno;
}