diff options
Diffstat (limited to 'fs/befs/debug.c')
-rw-r--r-- | fs/befs/debug.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/fs/befs/debug.c b/fs/befs/debug.c index 875cc0aa318c..e831a8f30849 100644 --- a/fs/befs/debug.c +++ b/fs/befs/debug.c | |||
@@ -21,7 +21,6 @@ | |||
21 | #endif /* __KERNEL__ */ | 21 | #endif /* __KERNEL__ */ |
22 | 22 | ||
23 | #include "befs.h" | 23 | #include "befs.h" |
24 | #include "endian.h" | ||
25 | 24 | ||
26 | #define ERRBUFSIZE 1024 | 25 | #define ERRBUFSIZE 1024 |
27 | 26 | ||
@@ -125,7 +124,7 @@ befs_dump_inode(const struct super_block *sb, befs_inode * inode) | |||
125 | befs_debug(sb, " type %08x", fs32_to_cpu(sb, inode->type)); | 124 | befs_debug(sb, " type %08x", fs32_to_cpu(sb, inode->type)); |
126 | befs_debug(sb, " inode_size %u", fs32_to_cpu(sb, inode->inode_size)); | 125 | befs_debug(sb, " inode_size %u", fs32_to_cpu(sb, inode->inode_size)); |
127 | 126 | ||
128 | if (S_ISLNK(inode->mode)) { | 127 | if (S_ISLNK(fs32_to_cpu(sb, inode->mode))) { |
129 | befs_debug(sb, " Symbolic link [%s]", inode->data.symlink); | 128 | befs_debug(sb, " Symbolic link [%s]", inode->data.symlink); |
130 | } else { | 129 | } else { |
131 | int i; | 130 | int i; |
@@ -231,21 +230,20 @@ befs_dump_small_data(const struct super_block *sb, befs_small_data * sd) | |||
231 | 230 | ||
232 | /* unused */ | 231 | /* unused */ |
233 | void | 232 | void |
234 | befs_dump_run(const struct super_block *sb, befs_block_run run) | 233 | befs_dump_run(const struct super_block *sb, befs_disk_block_run run) |
235 | { | 234 | { |
236 | #ifdef CONFIG_BEFS_DEBUG | 235 | #ifdef CONFIG_BEFS_DEBUG |
237 | 236 | ||
238 | run = fsrun_to_cpu(sb, run); | 237 | befs_block_run n = fsrun_to_cpu(sb, run); |
239 | 238 | ||
240 | befs_debug(sb, "[%u, %hu, %hu]", | 239 | befs_debug(sb, "[%u, %hu, %hu]", n.allocation_group, n.start, n.len); |
241 | run.allocation_group, run.start, run.len); | ||
242 | 240 | ||
243 | #endif //CONFIG_BEFS_DEBUG | 241 | #endif //CONFIG_BEFS_DEBUG |
244 | } | 242 | } |
245 | #endif /* 0 */ | 243 | #endif /* 0 */ |
246 | 244 | ||
247 | void | 245 | void |
248 | befs_dump_index_entry(const struct super_block *sb, befs_btree_super * super) | 246 | befs_dump_index_entry(const struct super_block *sb, befs_disk_btree_super * super) |
249 | { | 247 | { |
250 | #ifdef CONFIG_BEFS_DEBUG | 248 | #ifdef CONFIG_BEFS_DEBUG |
251 | 249 | ||