mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-08-01 16:10:30 +03:00
Replace fprintf with malloc_printf in tests.
This commit is contained in:
parent
fa08da752b
commit
45f208e112
12 changed files with 108 additions and 108 deletions
|
|
@ -79,13 +79,13 @@ main(void)
|
|||
int ret = 0;
|
||||
pthread_t thread;
|
||||
|
||||
fprintf(stderr, "Test begin\n");
|
||||
malloc_printf("Test begin\n");
|
||||
|
||||
thread_start(NULL);
|
||||
|
||||
if (pthread_create(&thread, NULL, thread_start, NULL)
|
||||
!= 0) {
|
||||
fprintf(stderr, "%s(): Error in pthread_create()\n", __func__);
|
||||
malloc_printf("%s(): Error in pthread_create()\n", __func__);
|
||||
ret = 1;
|
||||
goto label_return;
|
||||
}
|
||||
|
|
@ -95,7 +95,7 @@ main(void)
|
|||
|
||||
if (pthread_create(&thread, NULL, thread_start, NULL)
|
||||
!= 0) {
|
||||
fprintf(stderr, "%s(): Error in pthread_create()\n", __func__);
|
||||
malloc_printf("%s(): Error in pthread_create()\n", __func__);
|
||||
ret = 1;
|
||||
goto label_return;
|
||||
}
|
||||
|
|
@ -104,6 +104,6 @@ main(void)
|
|||
thread_start(NULL);
|
||||
|
||||
label_return:
|
||||
fprintf(stderr, "Test end\n");
|
||||
malloc_printf("Test end\n");
|
||||
return (ret);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue