printk: Optimize if statement logic where newline exists