use printf to simplify output

test-strcmp is modified