*/
const char *yaffs_guts_c_version =
- "$Id: yaffs_guts.c,v 1.77 2009-01-27 02:00:42 charles Exp $";
+ "$Id: yaffs_guts.c,v 1.78 2009-01-27 02:52:45 charles Exp $";
#include "yportenv.h"
if (dev->writeChunkWithTagsToNAND(dev, chunkId -
dev->chunkOffset, buffer, &tags) != YAFFS_OK)
T(YAFFS_TRACE_ALWAYS, (TSTR("yaffs: Failed to "
- "write bad block marker to block %d"
+ TCONT("write bad block marker to block %d")
TENDSTR), blockInNAND));
yaffs_ReleaseTempBuffer(dev, buffer, __LINE__);
if(nBytes < 1 || nBytes > dev->totalBytesPerChunk){
T(YAFFS_TRACE_ERROR,
(TSTR("Writing %d bytes to chunk!!!!!!!!!" TENDSTR), nBytes));
- while(1){}
- }
+ YBUG();
+ }
if (obj->variantType != cp->variantType) {
T(YAFFS_TRACE_ERROR,(TSTR("Checkpoint read object %d type %d "
- "chunk %d does not match existing object type %d"
+ TCONT("chunk %d does not match existing object type %d")
TENDSTR), cp->objectId, cp->variantType, cp->hdrChunk,
obj->variantType));
return 0;
if(parent) {
if (parent->variantType != YAFFS_OBJECT_TYPE_DIRECTORY) {
- T(YAFFS_TRACE_ALWAYS,(TSTR("Checkpoint read object %d parent %d type %d chunk %d Parent type, %d, not directory"TENDSTR),
+ T(YAFFS_TRACE_ALWAYS,(TSTR("Checkpoint read object %d parent %d type %d"
+ TCONT(" chunk %d Parent type, %d, not directory")
+ TENDSTR),
cp->objectId,cp->parentId,cp->variantType,cp->hdrChunk,parent->variantType));
return 0;
}
if(chunk * dev->nDataBytesPerChunk + start != offset ||
start >= dev->nDataBytesPerChunk){
- T(YAFFS_TRACE_ERROR,(TSTR("AddrToChunk of offset %d gives chunk %d start %d"TENDSTR),
- (int)offset, chunk,start));
+ T(YAFFS_TRACE_ERROR,(
+ TSTR("AddrToChunk of offset %d gives chunk %d start %d"
+ TENDSTR),
+ (int)offset, chunk,start));
}
chunk++;
if (!in->valid && in->variantType !=
(oh ? oh->type : tags.extraObjectType))
- T(YAFFS_TRACE_ERROR, (TSTR
- ("yaffs tragedy: Bad object type, "
- "%d != %d, for object %d at chunk "
- "%d during scan" TENDSTR), oh ?
+ T(YAFFS_TRACE_ERROR, (
+ TSTR("yaffs tragedy: Bad object type, "
+ TCONT("%d != %d, for object %d at chunk ")
+ TCONT("%d during scan")
+ TENDSTR), oh ?
oh->type : tags.extraObjectType,
in->variantType, tags.objectId,
chunk));