Isn't `dmesg` just `journalctl -k` on operating systems with systemd enabled?
https://github.com/systemd/systemd/blob/9afd5740391980fee5d8... https://github.com/systemd/systemd/blob/9afd5740391980fee5d8...
Whereas dmesg reads the kernel messages directly from the kernel.
https://github.com/karelzak/util-linux/blob/99c92a4820569970...