[PATCH] event-test: Properly terminate strings printed from callbacks