Ignore:
Timestamp:
Apr 5, 2019, 9:26:53 PM (5 years ago)
Author:
coas-nagasima
Message:

mbed関連を更新
シリアルドライバをmbedのHALを使うよう変更
ファイルディスクリプタの処理を更新

File:
1 edited

Legend:

Unmodified
Added
Removed
  • asp3_tinet_ecnl_rx/trunk/ntshell/tlsf/tlsf.c

    r337 r374  
    55#include <stdlib.h>
    66#include <string.h>
    7 #include "util/ntstdio.h"
     7#include <stdio.h>
    88
    99#include "tlsf.h"
     
    1616#define tlsf_decl static
    1717#endif
    18 
    19 extern ntstdio_t ntstdio;
    2018
    2119/*
     
    889887{
    890888        (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));
    892890}
    893891
     
    978976        if (((ptrdiff_t)mem % ALIGN_SIZE) != 0)
    979977        {
    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",
    981979                        (unsigned int)ALIGN_SIZE);
    982980                return 0;
     
    986984        {
    987985#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",
    989987                        (unsigned int)(pool_overhead + block_size_min),
    990988                        (unsigned int)((pool_overhead + block_size_max) / 256));
    991989#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",
    993991                        (unsigned int)(pool_overhead + block_size_min),
    994992                        (unsigned int)(pool_overhead + block_size_max));
     
    10581056        if (rv)
    10591057        {
    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);
    10611059        }
    10621060        return rv;
     
    10751073        if (((tlsfptr_t)mem % ALIGN_SIZE) != 0)
    10761074        {
    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",
    10781076                        (unsigned int)ALIGN_SIZE);
    10791077                return 0;
Note: See TracChangeset for help on using the changeset viewer.