* c-modules/test_rwrite/mod_test_rwrite.c: Use ap_log_rerror throughout.
git-svn-id: https://svn.apache.org/repos/asf/httpd/test/framework/trunk@1878613 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/c-modules/test_rwrite/mod_test_rwrite.c b/c-modules/test_rwrite/mod_test_rwrite.c
index 5675edd..71f038b 100644
--- a/c-modules/test_rwrite/mod_test_rwrite.c
+++ b/c-modules/test_rwrite/mod_test_rwrite.c
@@ -36,8 +36,9 @@
httpd_test_split_qs_numbers(r, &buff_size, &remaining, NULL);
- fprintf(stderr, "[mod_test_rwrite] going to echo %" APR_SIZE_T_FMT " bytes\n",
- remaining);
+ ap_log_rerror(APLOG_MARK, APLOG_INFO, 0, r,
+ "[mod_test_rwrite] going to echo %" APR_SIZE_T_FMT " bytes",
+ remaining);
buff = malloc(buff_size);
memset(buff, 'a', buff_size);
@@ -48,14 +49,14 @@
long nrd = ap_rwrite(buff, len, r);
total += nrd;
- fprintf(stderr, "[mod_test_rwrite] wrote %ld of %d bytes\n",
- nrd, len);
+ ap_log_rerror(APLOG_MARK, APLOG_INFO, 0, r,
+ "[mod_test_rwrite] wrote %ld of %d bytes", nrd, len);
}
-
- fprintf(stderr,
- "[mod_test_rwrite] done writing %" APR_SIZE_T_FMT
- " of %" APR_SIZE_T_FMT " bytes\n",
- total, remaining);
+
+ ap_log_rerror(APLOG_MARK, APLOG_INFO, 0, r,
+ "[mod_test_rwrite] done writing %" APR_SIZE_T_FMT
+ " of %" APR_SIZE_T_FMT " bytes",
+ total, remaining);
free(buff);
return OK;