feat: kprintf now goes into dedicated pseudo-dev rather than flooding the framebuffer
[lunaix-os.git] / lunaix-os / kernel / fs / probe_boot.c
index 69af61e5ea65aff0371225140f1e2cd0c99f98a1..77b4dff6eca146790e333886a4cadcf5a21586a5 100644 (file)
@@ -21,12 +21,12 @@ probe_boot_medium()
     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) {
-            kprintf(KWARN "can not probe %x:%s (%d)\n",
-                    pos->dev_id,
-                    pos->name.value,
-                    errno);
+            kprintf(KINFO "failed %xh:%xh, /dev/%s",
+                    pos->ident.fn_grp,
+                    pos->ident.unique,
+                    pos->name.value);
             pos = NULL;
             goto done;
         }
@@ -36,8 +36,9 @@ probe_boot_medium()
         }
 
         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;