diff options
author | Charles Manning <cdhmanning@gmail.com> | 2010-12-10 15:15:30 +1300 |
---|---|---|
committer | Charles Manning <cdhmanning@gmail.com> | 2010-12-10 15:15:30 +1300 |
commit | 79d0e028d5b777b2e4cf55d96b737cb024988abe (patch) | |
tree | 73e95fda748d315f0ff77e1f4886e95649a264e6 /yaffs_allocator.c | |
parent | fb1a7ee223619260cfd9b6366fd78747cc572cd5 (diff) |
yaffs Change tracing to yaffs_trace
Make the tracing a whole lot easier on the eye.
Signed-off-by: Charles Manning <cdhmanning@gmail.com>
Diffstat (limited to 'yaffs_allocator.c')
-rw-r--r-- | yaffs_allocator.c | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/yaffs_allocator.c b/yaffs_allocator.c index 9af15c7..f9cd5be 100644 --- a/yaffs_allocator.c +++ b/yaffs_allocator.c @@ -153,8 +153,8 @@ static int yaffs_create_tnodes(struct yaffs_dev *dev, int n_tnodes) mem = (u8 *) new_tnodes; if (!new_tnodes) { - T(YAFFS_TRACE_ERROR, - (TSTR("yaffs: Could not allocate Tnodes" TENDSTR))); + yaffs_trace(YAFFS_TRACE_ERROR, + "yaffs: Could not allocate Tnodes"); return YAFFS_FAIL; } @@ -179,9 +179,8 @@ static int yaffs_create_tnodes(struct yaffs_dev *dev, int n_tnodes) tnl = kmalloc(sizeof(struct yaffs_tnode_list), GFP_NOFS); if (!tnl) { - T(YAFFS_TRACE_ERROR, - (TSTR - ("yaffs: Could not add tnodes to management list" TENDSTR))); + yaffs_trace(YAFFS_TRACE_ERROR, + "Could not add tnodes to management list"); return YAFFS_FAIL; } else { tnl->tnodes = new_tnodes; @@ -189,7 +188,7 @@ static int yaffs_create_tnodes(struct yaffs_dev *dev, int n_tnodes) allocator->alloc_tnode_list = tnl; } - T(YAFFS_TRACE_ALLOCATE, (TSTR("yaffs: Tnodes added" TENDSTR))); + yaffs_trace(YAFFS_TRACE_ALLOCATE,"Tnodes added"); return YAFFS_OK; } @@ -301,8 +300,8 @@ static int yaffs_create_free_objs(struct yaffs_dev *dev, int n_obj) kfree(list); list = NULL; } - T(YAFFS_TRACE_ALLOCATE, - (TSTR("yaffs: Could not allocate more objects" TENDSTR))); + yaffs_trace(YAFFS_TRACE_ALLOCATE, + "Could not allocate more objects"); return YAFFS_FAIL; } |