use printf to simplify output

test-strlen is modified