Changeset 374 for asp3_tinet_ecnl_arm/trunk/ntshell/tlsf
- Timestamp:
- Apr 5, 2019, 9:26:53 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
asp3_tinet_ecnl_arm/trunk/ntshell/tlsf/tlsf.c
r352 r374 5 5 #include <stdlib.h> 6 6 #include <string.h> 7 #include "util/ntstdio.h"7 #include <stdio.h> 8 8 9 9 #include "tlsf.h" … … 16 16 #define tlsf_decl static 17 17 #endif 18 19 extern ntstdio_t ntstdio;20 18 21 19 /* … … 889 887 { 890 888 (void)user; 891 ntstdio_printf(&ntstdio,"\t%p %s size: %x (%p)\n", ptr, used ? "used" : "free", (unsigned int)size, block_from_ptr(ptr));889 printf("\t%p %s size: %x (%p)\n", ptr, used ? "used" : "free", (unsigned int)size, block_from_ptr(ptr)); 892 890 } 893 891 … … 978 976 if (((ptrdiff_t)mem % ALIGN_SIZE) != 0) 979 977 { 980 ntstdio_printf(&ntstdio,"tlsf_add_pool: Memory must be aligned by %u bytes.\n",978 printf("tlsf_add_pool: Memory must be aligned by %u bytes.\n", 981 979 (unsigned int)ALIGN_SIZE); 982 980 return 0; … … 986 984 { 987 985 #if defined (TLSF_64BIT) 988 ntstdio_printf(&ntstdio,"tlsf_add_pool: Memory size must be between 0x%x and 0x%x00 bytes.\n",986 printf("tlsf_add_pool: Memory size must be between 0x%x and 0x%x00 bytes.\n", 989 987 (unsigned int)(pool_overhead + block_size_min), 990 988 (unsigned int)((pool_overhead + block_size_max) / 256)); 991 989 #else 992 ntstdio_printf(&ntstdio,"tlsf_add_pool: Memory size must be between %u and %u bytes.\n",990 printf("tlsf_add_pool: Memory size must be between %u and %u bytes.\n", 993 991 (unsigned int)(pool_overhead + block_size_min), 994 992 (unsigned int)(pool_overhead + block_size_max)); … … 1058 1056 if (rv) 1059 1057 { 1060 ntstdio_printf(&ntstdio,"test_ffs_fls: %x ffs/fls tests failed.\n", rv);1058 printf("test_ffs_fls: %x ffs/fls tests failed.\n", rv); 1061 1059 } 1062 1060 return rv; … … 1075 1073 if (((tlsfptr_t)mem % ALIGN_SIZE) != 0) 1076 1074 { 1077 ntstdio_printf(&ntstdio,"tlsf_create: Memory must be aligned to %u bytes.\n",1075 printf("tlsf_create: Memory must be aligned to %u bytes.\n", 1078 1076 (unsigned int)ALIGN_SIZE); 1079 1077 return 0;
Note:
See TracChangeset
for help on using the changeset viewer.