Why not. But what is wrong with printf/asserts in kernel code? How would you add the arguments from cmd line? Read input buffer from file?