#define pr_fmt(fmt) …
#ifdef __KERNEL__
#include <linux/stdarg.h>
#include <linux/string.h>
#include <linux/spinlock.h>
#include <linux/kernel.h>
#include <linux/fs.h>
#include <linux/slab.h>
#endif
#include "befs.h"
void
befs_error(const struct super_block *sb, const char *fmt, ...)
{ … }
void
befs_warning(const struct super_block *sb, const char *fmt, ...)
{ … }
void
befs_debug(const struct super_block *sb, const char *fmt, ...)
{ … }
void
befs_dump_inode(const struct super_block *sb, befs_inode *inode)
{ … }
void
befs_dump_super_block(const struct super_block *sb, befs_super_block *sup)
{ … }
#if 0
void
befs_dump_small_data(const struct super_block *sb, befs_small_data *sd)
{
}
void
befs_dump_run(const struct super_block *sb, befs_disk_block_run run)
{
#ifdef CONFIG_BEFS_DEBUG
befs_block_run n = fsrun_to_cpu(sb, run);
befs_debug(sb, "[%u, %hu, %hu]", n.allocation_group, n.start, n.len);
#endif
}
#endif
void
befs_dump_index_entry(const struct super_block *sb,
befs_disk_btree_super *super)
{ … }
void
befs_dump_index_node(const struct super_block *sb, befs_btree_nodehead *node)
{ … }