X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs%2F.git;a=blobdiff_plain;f=yaffs_ramem.c;h=1a82ae5de13fee3190d32964411f139b0135cabf;hp=28ce406f45563c70ad79197637f9f9469c2f3529;hb=8f88750ecfa15e4ddb80fcc6080a0c104fd27bd9;hpb=4d9efb8e3f1bd240579632b4c1446d7384c3cc96 diff --git a/yaffs_ramem.c b/yaffs_ramem.c index 28ce406..1a82ae5 100644 --- a/yaffs_ramem.c +++ b/yaffs_ramem.c @@ -15,7 +15,7 @@ //yaffs_ramem.c // Since this creates the RAM block at start up it is pretty useless for testing the scanner. -const char *yaffs_ramem_c_version = "$Id: yaffs_ramem.c,v 1.5 2002-09-27 20:50:50 charles Exp $"; +const char *yaffs_ramem_c_version = "$Id: yaffs_ramem.c,v 1.6 2002-11-26 01:15:37 charles Exp $"; #ifndef __KERNEL__ #define CONFIG_YAFFS_RAM_ENABLED @@ -38,7 +38,7 @@ const char *yaffs_ramem_c_version = "$Id: yaffs_ramem.c,v 1.5 2002-09-27 20:50:5 #define FILE_SIZE_IN_BLOCKS (FILE_SIZE_IN_MEG * BLOCKS_PER_MEG) #define FILE_SIZE_IN_BYTES (FILE_SIZE_IN_BLOCKS * BLOCK_SIZE) -#define T(x) YPRINTF(x) + #define DEFAULT_SIZE_IN_MB 2 @@ -166,7 +166,7 @@ static int CheckInit(void) } YFREE(ned.block); - T(("Allocation failed, could only allocate %dMB of %dMB requested.\n", + T(YAFFS_TRACE_ALWAYS,("Allocation failed, could only allocate %dMB of %dMB requested.\n", nAllocated/64,sizeInMB)); return 0; } @@ -289,11 +289,11 @@ int nandemul_EraseBlockInNAND(yaffs_Device *dev, int blockNumber) if(blockNumber < 0 || blockNumber >= ned.nBlocks) { - T(("Attempt to erase non-existant block %d\n",blockNumber)); + T(YAFFS_TRACE_ALWAYS,("Attempt to erase non-existant block %d\n",blockNumber)); } else if(ned.block[blockNumber]->damaged) { - T(("Attempt to erase damaged block %d\n",blockNumber)); + T(YAFFS_TRACE_ALWAYS,("Attempt to erase damaged block %d\n",blockNumber)); } else {