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

@@ -58,7 +58,7 @@ main(void)
strcpy(dirname, onename);
for (i=0; i<MAXLEVELS; i++) {
printf("Creating directory: %s\n", dirname);
tprintf("Creating directory: %s\n", dirname);
if (mkdir(dirname, 0755)) {
err(1, "%s: mkdir", dirname);
@@ -68,18 +68,18 @@ main(void)
strcat(dirname, onename);
}
printf("Passed directory creation test.\n");
tprintf("Passed directory creation test.\n");
for (i=0; i<MAXLEVELS; i++) {
dirname[strlen(dirname) - strlen(onename) - 1] = 0;
printf("Removing directory: %s\n", dirname);
tprintf("Removing directory: %s\n", dirname);
if (rmdir(dirname)) {
err(1, "%s: rmdir", dirname);
}
}
printf("Passed directory removal test.\n");
tprintf("Passed directory removal test.\n");
return 0;
}