added sprintf, modified printk to use it