projects
/
yaffs2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
2009a0b
)
Add more detail to yaffs_debug
author
charles
<charles>
Mon, 15 Mar 2010 22:27:15 +0000
(22:27 +0000)
committer
charles
<charles>
Mon, 15 Mar 2010 22:27:15 +0000
(22:27 +0000)
yaffs_fs.c
patch
|
blob
|
history
diff --git
a/yaffs_fs.c
b/yaffs_fs.c
index c686fd5d5cffc08a108d7a37d97043144abdaccd..aaf3f0b3ac806572100b02699b20c7f704186d41 100644
(file)
--- a/
yaffs_fs.c
+++ b/
yaffs_fs.c
@@
-32,7
+32,7
@@
*/
const char *yaffs_fs_c_version =
*/
const char *yaffs_fs_c_version =
- "$Id: yaffs_fs.c,v 1.10
0 2010-03-15 06:28:36
charles Exp $";
+ "$Id: yaffs_fs.c,v 1.10
1 2010-03-15 22:27:15
charles Exp $";
extern const char *yaffs_guts_c_version;
#include <linux/version.h>
extern const char *yaffs_guts_c_version;
#include <linux/version.h>
@@
-2758,8
+2758,19
@@
static int yaffs_debug_proc_read(char *page,
ylist_for_each(item, &yaffs_context_list) {
struct yaffs_LinuxContext *dc = ylist_entry(item, struct yaffs_LinuxContext, contextList);
yaffs_Device *dev = dc->dev;
ylist_for_each(item, &yaffs_context_list) {
struct yaffs_LinuxContext *dc = ylist_entry(item, struct yaffs_LinuxContext, contextList);
yaffs_Device *dev = dc->dev;
+
+ int erasedChunks;
+ int nObjects;
+ int nTnodes;
+
+ erasedChunks = dev->nErasedBlocks * dev->param.nChunksPerBlock;
+ nObjects = dev->nObjectsCreated -dev->nFreeObjects;
+ nTnodes = dev->nTnodesCreated - dev->nFreeTnodes;
+
- buf += sprintf(buf,"%d %u %u\n", n, dev->nFreeChunks, dev->nErasedBlocks * dev->param.nChunksPerBlock);
+ buf += sprintf(buf,"%d, %d, %d, %d, %d\n",
+ n, dev->nFreeChunks, erasedChunks,
+ nObjects, nTnodes);
}
up(&yaffs_context_lock);
}
up(&yaffs_context_lock);