diff options
author | Mike Hommey <mh@glandium.org> | 2012-04-16 14:30:26 (GMT) |
---|---|---|
committer | Jason Evans <je@fb.com> | 2012-04-17 06:05:39 (GMT) |
commit | 45f208e112fcb82e0c98d572fc34259d65d6b6c1 (patch) | |
tree | a19cdbee6a0a7fc6c7a9e4317c0a5c8931a3cbfe /test/mremap.c | |
parent | fa08da752bf91c146f77fff59b4ed09b42633260 (diff) | |
download | jemalloc-45f208e112fcb82e0c98d572fc34259d65d6b6c1.zip jemalloc-45f208e112fcb82e0c98d572fc34259d65d6b6c1.tar.gz jemalloc-45f208e112fcb82e0c98d572fc34259d65d6b6c1.tar.bz2 |
Replace fprintf with malloc_printf in tests.
Diffstat (limited to 'test/mremap.c')
-rw-r--r-- | test/mremap.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/mremap.c b/test/mremap.c index cac3bd8..84c0349 100644 --- a/test/mremap.c +++ b/test/mremap.c @@ -14,12 +14,12 @@ main(void) size_t sz, lg_chunk, chunksize, i; char *p, *q; - fprintf(stderr, "Test begin\n"); + malloc_printf("Test begin\n"); sz = sizeof(lg_chunk); if ((err = mallctl("opt.lg_chunk", &lg_chunk, &sz, NULL, 0))) { assert(err != ENOENT); - fprintf(stderr, "%s(): Error in mallctl(): %s\n", __func__, + malloc_printf("%s(): Error in mallctl(): %s\n", __func__, strerror(err)); ret = 1; goto label_return; @@ -28,7 +28,7 @@ main(void) p = (char *)malloc(chunksize); if (p == NULL) { - fprintf(stderr, "malloc(%zu) --> %p\n", chunksize, p); + malloc_printf("malloc(%zu) --> %p\n", chunksize, p); ret = 1; goto label_return; } @@ -36,7 +36,7 @@ main(void) q = (char *)realloc(p, chunksize * 2); if (q == NULL) { - fprintf(stderr, "realloc(%p, %zu) --> %p\n", p, chunksize * 2, + malloc_printf("realloc(%p, %zu) --> %p\n", p, chunksize * 2, q); ret = 1; goto label_return; @@ -49,7 +49,7 @@ main(void) q = (char *)realloc(p, chunksize); if (q == NULL) { - fprintf(stderr, "realloc(%p, %zu) --> %p\n", p, chunksize, q); + malloc_printf("realloc(%p, %zu) --> %p\n", p, chunksize, q); ret = 1; goto label_return; } @@ -61,6 +61,6 @@ main(void) ret = 0; label_return: - fprintf(stderr, "Test end\n"); + malloc_printf("Test end\n"); return (ret); } |