[PATCH v2 1/3] printk: Split the code for storing a message into the log buffer