use printf to simplify output

test-itoa is modified
use printf to simplify output

test-find_events is modified