test: print: use #define to redefine printf

Signed-off-by: Dejin Zheng <senok@163.com>