printk is a printf-like function of the Linux kernel interface for formatting and writing kernel log entries. Since the C standard library is not available in kernel mode, printk provides for general-purpose output in the kernel. Due to limitations of the kernel design, the function is often used to aid debugging kernel mode software.