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
/
fs
/
probe_boot.c
diff --git
a/lunaix-os/kernel/fs/probe_boot.c
b/lunaix-os/kernel/fs/probe_boot.c
index 69af61e5ea65aff0371225140f1e2cd0c99f98a1..77b4dff6eca146790e333886a4cadcf5a21586a5 100644
(file)
--- a/
lunaix-os/kernel/fs/probe_boot.c
+++ b/
lunaix-os/kernel/fs/probe_boot.c
@@
-21,12
+21,12
@@
probe_boot_medium()
llist_for_each(pos, n, &block_cat->children, siblings)
{
int errno =
llist_for_each(pos, n, &block_cat->children, siblings)
{
int errno =
- pos->read(pos, (void*)volp, ISO9660_READ_OFF, ISO9660_BLKSZ);
+ pos->
ops.
read(pos, (void*)volp, ISO9660_READ_OFF, ISO9660_BLKSZ);
if (errno < 0) {
if (errno < 0) {
- kprintf(K
WARN "can not probe %x:%s (%d)\n
",
- pos->
dev_id
,
- pos->
name.val
ue,
-
errno
);
+ kprintf(K
INFO "failed %xh:%xh, /dev/%s
",
+ pos->
ident.fn_grp
,
+ pos->
ident.uniq
ue,
+
pos->name.value
);
pos = NULL;
goto done;
}
pos = NULL;
goto done;
}
@@
-36,8
+36,9
@@
probe_boot_medium()
}
if (*(u32_t*)volp->sys_id == LUNAIX_ID) {
}
if (*(u32_t*)volp->sys_id == LUNAIX_ID) {
- kprintf(KINFO "[%x:%s] %s\n",
- pos->dev_id,
+ kprintf(KINFO "%xh:%xh, /dev/%s, %s",
+ pos->ident.fn_grp,
+ pos->ident.unique,
pos->name.value,
(char*)volp->vol_id);
break;
pos->name.value,
(char*)volp->vol_id);
break;