Changeset 387 for asp3_tinet_ecnl_rx/trunk/asp3_dcre/syssvc/tlsf/tlsf.c
- Timestamp:
- May 22, 2019, 4:09:18 PM (5 years ago)
- Location:
- asp3_tinet_ecnl_rx/trunk/asp3_dcre/syssvc/tlsf
- Files:
-
- 1 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
asp3_tinet_ecnl_rx/trunk/asp3_dcre/syssvc/tlsf/tlsf.c
r374 r387 6 6 #include <string.h> 7 7 #include <stdio.h> 8 #include <t_syslog.h> 8 9 9 10 #include "tlsf.h" … … 887 888 { 888 889 (void)user; 889 printf("\t%p %s size: %x (%p)\n", ptr, used ? "used" : "free", (unsigned int)size, block_from_ptr(ptr));890 syslog(LOG_NOTICE, "\t%p %s size: %x (%p)", ptr, used ? "used" : "free", (unsigned int)size, block_from_ptr(ptr)); 890 891 } 891 892 … … 976 977 if (((ptrdiff_t)mem % ALIGN_SIZE) != 0) 977 978 { 978 printf("tlsf_add_pool: Memory must be aligned by %u bytes.\n",979 syslog(LOG_NOTICE, "tlsf_add_pool: Memory must be aligned by %u bytes.", 979 980 (unsigned int)ALIGN_SIZE); 980 981 return 0; … … 984 985 { 985 986 #if defined (TLSF_64BIT) 986 printf("tlsf_add_pool: Memory size must be between 0x%x and 0x%x00 bytes.\n",987 syslog(LOG_NOTICE, "tlsf_add_pool: Memory size must be between 0x%x and 0x%x00 bytes.", 987 988 (unsigned int)(pool_overhead + block_size_min), 988 989 (unsigned int)((pool_overhead + block_size_max) / 256)); 989 990 #else 990 printf("tlsf_add_pool: Memory size must be between %u and %u bytes.\n",991 syslog(LOG_NOTICE, "tlsf_add_pool: Memory size must be between %u and %u bytes.", 991 992 (unsigned int)(pool_overhead + block_size_min), 992 993 (unsigned int)(pool_overhead + block_size_max)); … … 1056 1057 if (rv) 1057 1058 { 1058 printf("test_ffs_fls: %x ffs/fls tests failed.\n", rv);1059 syslog(LOG_NOTICE, "test_ffs_fls: %x ffs/fls tests failed.", rv); 1059 1060 } 1060 1061 return rv; … … 1073 1074 if (((tlsfptr_t)mem % ALIGN_SIZE) != 0) 1074 1075 { 1075 printf("tlsf_create: Memory must be aligned to %u bytes.\n",1076 syslog(LOG_NOTICE, "tlsf_create: Memory must be aligned to %u bytes.", 1076 1077 (unsigned int)ALIGN_SIZE); 1077 1078 return 0;
Note:
See TracChangeset
for help on using the changeset viewer.