modify replay.cpp output to stdout

Signed-off-by: xiehuc <xiehuc@gmail.com>