Ignore:
Timestamp:
May 22, 2019, 4:09:18 PM (5 years ago)
Author:
coas-nagasima
Message:

ファイルディスクリプタ処理を更新

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  
    66#include <string.h>
    77#include <stdio.h>
     8#include <t_syslog.h>
    89
    910#include "tlsf.h"
     
    887888{
    888889        (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));
    890891}
    891892
     
    976977        if (((ptrdiff_t)mem % ALIGN_SIZE) != 0)
    977978        {
    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.",
    979980                        (unsigned int)ALIGN_SIZE);
    980981                return 0;
     
    984985        {
    985986#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.",
    987988                        (unsigned int)(pool_overhead + block_size_min),
    988989                        (unsigned int)((pool_overhead + block_size_max) / 256));
    989990#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.",
    991992                        (unsigned int)(pool_overhead + block_size_min),
    992993                        (unsigned int)(pool_overhead + block_size_max));
     
    10561057        if (rv)
    10571058        {
    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);
    10591060        }
    10601061        return rv;
     
    10731074        if (((tlsfptr_t)mem % ALIGN_SIZE) != 0)
    10741075        {
    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.",
    10761077                        (unsigned int)ALIGN_SIZE);
    10771078                return 0;
Note: See TracChangeset for help on using the changeset viewer.