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:
parent
f6c4b6377f
commit
c65bfa3fa3
16 changed files with 57 additions and 42 deletions
|
|
@ -732,7 +732,7 @@ hid_attach(const uchar *desc, int n, const char *what)
|
|||
h->proto = !h->x.ok ? USB_HID_PROTO_KEYBOARD :
|
||||
h->x.rel ? USB_HID_PROTO_MOUSE : USB_HID_PROTO_TABLET;
|
||||
h->in_use = 1;
|
||||
cprintf("%s: %s%s\n", what,
|
||||
kinfo("%s: %s%s\n", what,
|
||||
h->proto == USB_HID_PROTO_KEYBOARD ? "keyboard" :
|
||||
h->proto == USB_HID_PROTO_MOUSE ? "pointer" : "absolute pointer",
|
||||
h->rkbd && h->x.ok ? " and keyboard" : "");
|
||||
|
|
@ -853,7 +853,7 @@ hid_probe(struct usb_dev *dev)
|
|||
} else {
|
||||
// A consumer-control interface (volume keys), a game pad, a UPS: HID,
|
||||
// and not something this driver has a use for.
|
||||
cprintf("usb-hid: interface %d is neither a keyboard nor a pointer\n",
|
||||
kinfo("usb-hid: interface %d is neither a keyboard nor a pointer\n",
|
||||
dev->iface.bInterfaceNumber);
|
||||
return -1;
|
||||
}
|
||||
|
|
@ -878,7 +878,7 @@ hid_probe(struct usb_dev *dev)
|
|||
return -1;
|
||||
}
|
||||
|
||||
cprintf("usb-hid: %s%s on slot %d, endpoint 0x%x every %d ms\n",
|
||||
kinfo("usb-hid: %s%s on slot %d, endpoint 0x%x every %d ms\n",
|
||||
h->proto == USB_HID_PROTO_KEYBOARD ? "keyboard" :
|
||||
h->proto == USB_HID_PROTO_MOUSE ? "mouse" : "absolute pointer",
|
||||
h->proto == USB_HID_PROTO_KEYBOARD ?
|
||||
|
|
@ -906,7 +906,7 @@ hid_disconnect(struct usb_dev *dev)
|
|||
krep.c = 0;
|
||||
release(&kqlock);
|
||||
}
|
||||
cprintf("usb-hid: %s on slot %d unplugged\n",
|
||||
kinfo("usb-hid: %s on slot %d unplugged\n",
|
||||
h->proto == USB_HID_PROTO_KEYBOARD ? "keyboard" : "pointer",
|
||||
dev->slot);
|
||||
h->in_use = 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue