<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
I'm using Arch and I cannot figure out how to get printk debug
messages to display in journalctl.<br>
<br>
I tried the following:<br>
* Set LogLevel=debug in /etc/systemd/systemd.conf<br>
* Add kernel parameter 'debug' on boot<br>
* Setting loglevel=8 in /proc/sys/kernel/printk<br>
* dmsg -n 8<br>
<br>
Consider the following module:<br>
<title>Konsole output</title>
<div> <span style="font-family:monospace"><span
style="font-weight:bold;color:#ffff54;background-color:#ffffff;">
</span><span style="color:#000000;background-color:#ffffff;"></span><br>
----------<br>
</span></div>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
#include <linux/module.h><br>
#include <linux/kernel.h><br>
#include <linux/init.h><br>
static int __init task1_init(void)<br>
{<br>
pr_notice("I am at level notice");<br>
pr_debug("I am at level debug.");<br>
return 0;<br>
}<br>
static void __exit task1_exit(void){}<br>
module_init(task1_init);<br>
module_exit(task1_exit);<br>
------------<br>
<br>
The notice level is printed but the debug level is not.<br>
The debug message is not in dmesg or /dev/kmsg either<br>
<br>
The answer is probably straight forward, but I've hit a wall so I'm
hoping<br>
somebody here will be able to point me in the right direction<br>
</body>
</html>