1) Moved tprintf and related functions to their own file in common/libc/printf/tprintf.c.

This file is included by both libc and hostcompat.

2) Changed printf -> tprintf in all testbin programs
This commit is contained in:
Scott Haseley
2016-01-15 13:33:11 -05:00
parent 98ff530afb
commit 0ab862abfa
49 changed files with 501 additions and 478 deletions

View File

@@ -112,7 +112,7 @@ check_sbrk(void)
base = sbrk(SBRK_SIZE);
if (base == (void *)-1) {
if (errno == ENOSYS) {
printf("I guess you haven't implemented sbrk yet.\n");
tprintf("I guess you haven't implemented sbrk yet.\n");
return;
}
err(1, "sbrk");
@@ -133,13 +133,13 @@ check_sbrk(void)
int
main(void)
{
printf("zero: phase 1: checking .bss\n");
tprintf("zero: phase 1: checking .bss\n");
check_data();
check_bss();
printf("zero: phase 2: checking sbrk()\n");
tprintf("zero: phase 2: checking sbrk()\n");
check_sbrk();
printf("zero: passed\n");
tprintf("zero: passed\n");
return 0;
}