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:
@@ -79,7 +79,7 @@ main(int argc, char *argv[])
|
||||
threadfork(BladeRunner);
|
||||
}
|
||||
|
||||
printf("Parent has left.\n");
|
||||
tprintf("Parent has left.\n");
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -93,7 +93,7 @@ BladeRunner()
|
||||
{
|
||||
while (count < MAX) {
|
||||
if (count % 500 == 0)
|
||||
printf("Blade ");
|
||||
tprintf("Blade ");
|
||||
count++;
|
||||
}
|
||||
}
|
||||
@@ -103,7 +103,7 @@ ThreadRunner()
|
||||
{
|
||||
while (count < MAX) {
|
||||
if (count % 513 == 0)
|
||||
printf(" Runner\n");
|
||||
tprintf(" Runner\n");
|
||||
count++;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user