Commit a83179a8 authored by Luis de Bethencourt's avatar Luis de Bethencourt

befs: fix style issues in debug.c

Fix all checkpatch.pl errors and warnings in debug.c:
ERROR: trailing whitespace
+ * $

WARNING: Missing a blank line after declarations
+       va_list args;
+       va_start(args, fmt);

ERROR: "foo * bar" should be "foo *bar"
+befs_dump_inode(const struct super_block *sb, befs_inode * inode)

ERROR: "foo * bar" should be "foo *bar"
+befs_dump_super_block(const struct super_block *sb, befs_super_block * sup)

ERROR: "foo * bar" should be "foo *bar"
+befs_dump_small_data(const struct super_block *sb, befs_small_data * sd)

WARNING: line over 80 characters
+befs_dump_index_entry(const struct super_block *sb, befs_disk_btree_super * super)

ERROR: "foo * bar" should be "foo *bar"
+befs_dump_index_entry(const struct super_block *sb, befs_disk_btree_super * super)

ERROR: "foo * bar" should be "foo *bar"
+befs_dump_index_node(const struct super_block *sb, befs_btree_nodehead * node)
Signed-off-by: default avatarLuis de Bethencourt <luisbg@osg.samsung.com>
parent 69973b83
...@@ -57,6 +57,7 @@ befs_debug(const struct super_block *sb, const char *fmt, ...) ...@@ -57,6 +57,7 @@ befs_debug(const struct super_block *sb, const char *fmt, ...)
struct va_format vaf; struct va_format vaf;
va_list args; va_list args;
va_start(args, fmt); va_start(args, fmt);
vaf.fmt = fmt; vaf.fmt = fmt;
vaf.va = &args; vaf.va = &args;
...@@ -67,7 +68,7 @@ befs_debug(const struct super_block *sb, const char *fmt, ...) ...@@ -67,7 +68,7 @@ befs_debug(const struct super_block *sb, const char *fmt, ...)
} }
void void
befs_dump_inode(const struct super_block *sb, befs_inode * inode) befs_dump_inode(const struct super_block *sb, befs_inode *inode)
{ {
#ifdef CONFIG_BEFS_DEBUG #ifdef CONFIG_BEFS_DEBUG
...@@ -151,7 +152,7 @@ befs_dump_inode(const struct super_block *sb, befs_inode * inode) ...@@ -151,7 +152,7 @@ befs_dump_inode(const struct super_block *sb, befs_inode * inode)
*/ */
void void
befs_dump_super_block(const struct super_block *sb, befs_super_block * sup) befs_dump_super_block(const struct super_block *sb, befs_super_block *sup)
{ {
#ifdef CONFIG_BEFS_DEBUG #ifdef CONFIG_BEFS_DEBUG
...@@ -202,7 +203,7 @@ befs_dump_super_block(const struct super_block *sb, befs_super_block * sup) ...@@ -202,7 +203,7 @@ befs_dump_super_block(const struct super_block *sb, befs_super_block * sup)
#if 0 #if 0
/* unused */ /* unused */
void void
befs_dump_small_data(const struct super_block *sb, befs_small_data * sd) befs_dump_small_data(const struct super_block *sb, befs_small_data *sd)
{ {
} }
...@@ -221,7 +222,8 @@ befs_dump_run(const struct super_block *sb, befs_disk_block_run run) ...@@ -221,7 +222,8 @@ befs_dump_run(const struct super_block *sb, befs_disk_block_run run)
#endif /* 0 */ #endif /* 0 */
void void
befs_dump_index_entry(const struct super_block *sb, befs_disk_btree_super * super) befs_dump_index_entry(const struct super_block *sb,
befs_disk_btree_super *super)
{ {
#ifdef CONFIG_BEFS_DEBUG #ifdef CONFIG_BEFS_DEBUG
...@@ -242,7 +244,7 @@ befs_dump_index_entry(const struct super_block *sb, befs_disk_btree_super * supe ...@@ -242,7 +244,7 @@ befs_dump_index_entry(const struct super_block *sb, befs_disk_btree_super * supe
} }
void void
befs_dump_index_node(const struct super_block *sb, befs_btree_nodehead * node) befs_dump_index_node(const struct super_block *sb, befs_btree_nodehead *node)
{ {
#ifdef CONFIG_BEFS_DEBUG #ifdef CONFIG_BEFS_DEBUG
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment