boot: driver chatter goes to the log; the console clears its margins

ACPI, DMI, SMP, xHCI, USB, I2C, NVMe, r8169 and ramdisk progress lines are
kinfo now: in dmesg and on a verbose boot, off the screen of a working
machine. Failures stay cprintf.

vt_repaint also paints the strip right of the last column and below the
last row, which kept the bottom of the X desktop after Ctrl+Alt+F-key.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01S1giNvrHTrPMPw7V6x1kQ4
This commit is contained in:
Nexoniarz 2026-10-25 01:53:46 +02:00
commit c65bfa3fa3
16 changed files with 57 additions and 42 deletions

View file

@ -330,13 +330,13 @@ add_namespace(struct nvme *c, uint32 nsid)
uint32 lbaf = *(uint32 *)(id + 128 + 4 * (id[26] & 0xF));
uint32 lbads = (lbaf >> 16) & 0xFF;
if (lbads < 9 || lbads > 12) {
cprintf("nvme%d: namespace %d has %d-byte sectors; not used\n",
kinfo("nvme%d: namespace %d has %d-byte sectors; not used\n",
c->index, nsid, 1 << lbads);
return;
}
if (lbaf & 0xFFFF) {
// Metadata interleaved with the data would land in our bounce buffer.
cprintf("nvme%d: namespace %d carries metadata; not used\n",
kinfo("nvme%d: namespace %d carries metadata; not used\n",
c->index, nsid);
return;
}
@ -357,7 +357,7 @@ add_namespace(struct nvme *c, uint32 nsid)
*p++ = '0' + nsid % 10;
*p = 0;
cprintf("nvme: %s: %d MB, %d-byte sectors\n", ns->name,
kinfo("nvme: %s: %d MB, %d-byte sectors\n", ns->name,
(int)((nsze << lbads) >> 20), ns->secsize);
blkdev_register(ns->name, &nvme_ops, ns, ns->nsectors, ns->secsize);
}