<div>Hi everyone,<br></div><div><br></div><div>I'm modifying kernel code and running into system dead-lock issues. I have printk statements to try to retrieve info about the freeze after I do a hard shutdown, but printk is asynchronous so /var/log/kern.log only shows NULL character gibberish instead (^@^@^@^@). Is there a way to make printk synchronous? I have looked at people using <a rel="nofollow" title="https://lore.kernel.org/patchwork/patch/671535/" target="_blank" href="https://lore.kernel.org/patchwork/patch/671535/">printk_sync</a> and <a rel="nofollow" title="https://stackoverflow.com/questions/26413750/how-to-avoid-printk-log-dropping-in-linux-kernel" target="_blank" href="https://stackoverflow.com/questions/26413750/how-to-avoid-printk-log-dropping-in-linux-kernel">printk.synchronous</a> variables as recently as 2017, but I don't see any reference to these anymore in the kernel version I have (5.4). <br></div><div><br></div><div>Thanks for the help.</div><div><br></div><div><br></div>