s/printf/log_normal/. Or, if you want it to go to stderr, you can make a log_error().