- buf +=sprintf(buf,"\nDevice %s\n",name);
- buf +=sprintf(buf,"startBlock......... %d\n",dev->startBlock);
- buf +=sprintf(buf,"endBlock........... %d\n",dev->endBlock);
- buf +=sprintf(buf,"chunkGroupBits..... %d\n",dev->chunkGroupBits);
- buf +=sprintf(buf,"chunkGroupSize..... %d\n",dev->chunkGroupSize);
- buf +=sprintf(buf,"nErasedBlocks...... %d\n",dev->nErasedBlocks);
- buf +=sprintf(buf,"nTnodesCreated..... %d\n",dev->nTnodesCreated);
- buf +=sprintf(buf,"nFreeTnodes........ %d\n",dev->nFreeTnodes);
- buf +=sprintf(buf,"nObjectsCreated.... %d\n",dev->nObjectsCreated);
- buf +=sprintf(buf,"nFreeObjects....... %d\n",dev->nFreeObjects);
- buf +=sprintf(buf,"nFreeChunks........ %d\n",dev->nFreeChunks);
- buf +=sprintf(buf,"nPageWrites........ %d\n",dev->nPageWrites);
- buf +=sprintf(buf,"nPageReads......... %d\n",dev->nPageReads);
- buf +=sprintf(buf,"nBlockErasures..... %d\n",dev->nBlockErasures);
- buf +=sprintf(buf,"nGCCopies.......... %d\n",dev->nGCCopies);
- buf +=sprintf(buf,"garbageCollections. %d\n",dev->garbageCollections);
- buf +=sprintf(buf,"passiveGCs......... %d\n",dev->passiveGarbageCollections);
- buf +=sprintf(buf,"nRetriedWrites..... %d\n",dev->nRetriedWrites);
- buf +=sprintf(buf,"nRetireBlocks...... %d\n",dev->nRetiredBlocks);
- buf +=sprintf(buf,"eccFixed........... %d\n",dev->eccFixed);
- buf +=sprintf(buf,"eccUnfixed......... %d\n",dev->eccUnfixed);
- buf +=sprintf(buf,"tagsEccFixed....... %d\n",dev->tagsEccFixed);
- buf +=sprintf(buf,"tagsEccUnfixed..... %d\n",dev->tagsEccUnfixed);
- buf +=sprintf(buf,"cacheHits.......... %d\n",dev->cacheHits);
- buf +=sprintf(buf,"nDeletedFiles...... %d\n",dev->nDeletedFiles);
- buf +=sprintf(buf,"nUnlinkedFiles..... %d\n",dev->nUnlinkedFiles);
- buf +=sprintf(buf,"nBackgroudDeletions %d\n",dev->nBackgroundDeletions);
- buf +=sprintf(buf,"useNANDECC......... %d\n",dev->useNANDECC);
- buf +=sprintf(buf,"isYaffs2........... %d\n",dev->isYaffs2);
-
-
- return buf;
-}