aboutsummaryrefslogtreecommitdiffstats
path: root/fs/befs/debug.c
diff options
context:
space:
mode:
authorAl Viro <viro@ftp.linux.org.uk>2005-12-24 14:28:55 -0500
committerLinus Torvalds <torvalds@g5.osdl.org>2006-10-10 19:15:33 -0400
commita9721f3152bc2be6702807705902e06abdd6e3bb (patch)
tree4f01e2f3426697787330371ab822e7e60bc2238e /fs/befs/debug.c
parente5201c58cd81066ecd0210bcc6c02e71200040a3 (diff)
[PATCH] befs: endianness annotations
split the data structures that exist in host- and disk-endian variants, annotate the fields of disk-endian ones, propagate changes. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'fs/befs/debug.c')
-rw-r--r--fs/befs/debug.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/fs/befs/debug.c b/fs/befs/debug.c
index bb68370f6494..e831a8f30849 100644
--- a/fs/befs/debug.c
+++ b/fs/befs/debug.c
@@ -230,21 +230,20 @@ befs_dump_small_data(const struct super_block *sb, befs_small_data * sd)
230 230
231/* unused */ 231/* unused */
232void 232void
233befs_dump_run(const struct super_block *sb, befs_block_run run) 233befs_dump_run(const struct super_block *sb, befs_disk_block_run run)
234{ 234{
235#ifdef CONFIG_BEFS_DEBUG 235#ifdef CONFIG_BEFS_DEBUG
236 236
237 run = fsrun_to_cpu(sb, run); 237 befs_block_run n = fsrun_to_cpu(sb, run);
238 238
239 befs_debug(sb, "[%u, %hu, %hu]", 239 befs_debug(sb, "[%u, %hu, %hu]", n.allocation_group, n.start, n.len);
240 run.allocation_group, run.start, run.len);
241 240
242#endif //CONFIG_BEFS_DEBUG 241#endif //CONFIG_BEFS_DEBUG
243} 242}
244#endif /* 0 */ 243#endif /* 0 */
245 244
246void 245void
247befs_dump_index_entry(const struct super_block *sb, befs_btree_super * super) 246befs_dump_index_entry(const struct super_block *sb, befs_disk_btree_super * super)
248{ 247{
249#ifdef CONFIG_BEFS_DEBUG 248#ifdef CONFIG_BEFS_DEBUG
250 249