implement stdout with cputbuf instead of printk