Hi all,
I was wondering if there is any way to configure the color and the background of kernel messages, that on the console are printed as light white (37m) while, for instance, in OpenBSD are yellow on blue background. Moreover I don't see where this trick is done, since the kernel uses the normal printf(2) (or at least I think so) as in the following snippet from sys/kern/vfs_mountroot.c:
It should not be a console setting, since on the console are printed also normal chars, therefore if anyone can provide me some clues it will be very interesting for me.
I was wondering if there is any way to configure the color and the background of kernel messages, that on the console are printed as light white (37m) while, for instance, in OpenBSD are yellow on blue background. Moreover I don't see where this trick is done, since the kernel uses the normal printf(2) (or at least I think so) as in the following snippet from sys/kern/vfs_mountroot.c:
Code:
if (strcmp(fs, "zfs") != 0 && dev[0] != '\0' &&
!parse_mount_dev_present(dev)) {
printf("mountroot: waiting for device %s ...\n", dev);
delay = hz / 10;
It should not be a console setting, since on the console are printed also normal chars, therefore if anyone can provide me some clues it will be very interesting for me.