echo "<int>Hello" | sudo tee /dev/kmsg
where int is parsed as {LOG_FACILITY,LOG_LEVEL} - lower 3 bits are level, bits 3-11 are facility.
dmesg applies its own colour formatting depending on the interpreted loglevel. int=7 produces something that looks like the default terminal text.
where int is parsed as {LOG_FACILITY,LOG_LEVEL} - lower 3 bits are level, bits 3-11 are facility.
dmesg applies its own colour formatting depending on the interpreted loglevel. int=7 produces something that looks like the default terminal text.
Statistics: Posted by jdb — Fri Nov 29, 2024 3:49 pm