fix kernel oops when pass nil to printf

Signed-off-by: zhangwei(Jovi) <jovi.zhangwei@gmail.com>
add sample script scripts/errinfo.kp

Signed-off-by: zhangwei(Jovi) <jovi.zhangwei@gmail.com>