diff options
author | Luis de Bethencourt <luisbg@osg.samsung.com> | 2016-08-14 12:26:43 -0400 |
---|---|---|
committer | Luis de Bethencourt <luisbg@osg.samsung.com> | 2016-12-22 06:25:19 -0500 |
commit | a83179a8e95ec70a84d3a9a04b6062fa1884aebf (patch) | |
tree | 5c632ee11ba74b2cb12a3d4645540a9ebc6f686c /fs | |
parent | 69973b830859bc6529a7a0468ba0d80ee5117826 (diff) |
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: Luis de Bethencourt <luisbg@osg.samsung.com>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/befs/debug.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/fs/befs/debug.c b/fs/befs/debug.c index 85c13392e9e8..36656c86f50e 100644 --- a/fs/befs/debug.c +++ b/fs/befs/debug.c | |||
@@ -1,6 +1,6 @@ | |||
1 | /* | 1 | /* |
2 | * linux/fs/befs/debug.c | 2 | * linux/fs/befs/debug.c |
3 | * | 3 | * |
4 | * Copyright (C) 2001 Will Dyson (will_dyson at pobox.com) | 4 | * Copyright (C) 2001 Will Dyson (will_dyson at pobox.com) |
5 | * | 5 | * |
6 | * With help from the ntfs-tng driver by Anton Altparmakov | 6 | * With help from the ntfs-tng driver by Anton Altparmakov |
@@ -57,6 +57,7 @@ befs_debug(const struct super_block *sb, const char *fmt, ...) | |||
57 | 57 | ||
58 | struct va_format vaf; | 58 | struct va_format vaf; |
59 | va_list args; | 59 | va_list args; |
60 | |||
60 | va_start(args, fmt); | 61 | va_start(args, fmt); |
61 | vaf.fmt = fmt; | 62 | vaf.fmt = fmt; |
62 | vaf.va = &args; | 63 | vaf.va = &args; |
@@ -67,7 +68,7 @@ befs_debug(const struct super_block *sb, const char *fmt, ...) | |||
67 | } | 68 | } |
68 | 69 | ||
69 | void | 70 | void |
70 | befs_dump_inode(const struct super_block *sb, befs_inode * inode) | 71 | befs_dump_inode(const struct super_block *sb, befs_inode *inode) |
71 | { | 72 | { |
72 | #ifdef CONFIG_BEFS_DEBUG | 73 | #ifdef CONFIG_BEFS_DEBUG |
73 | 74 | ||
@@ -151,7 +152,7 @@ befs_dump_inode(const struct super_block *sb, befs_inode * inode) | |||
151 | */ | 152 | */ |
152 | 153 | ||
153 | void | 154 | void |
154 | befs_dump_super_block(const struct super_block *sb, befs_super_block * sup) | 155 | befs_dump_super_block(const struct super_block *sb, befs_super_block *sup) |
155 | { | 156 | { |
156 | #ifdef CONFIG_BEFS_DEBUG | 157 | #ifdef CONFIG_BEFS_DEBUG |
157 | 158 | ||
@@ -202,7 +203,7 @@ befs_dump_super_block(const struct super_block *sb, befs_super_block * sup) | |||
202 | #if 0 | 203 | #if 0 |
203 | /* unused */ | 204 | /* unused */ |
204 | void | 205 | void |
205 | befs_dump_small_data(const struct super_block *sb, befs_small_data * sd) | 206 | befs_dump_small_data(const struct super_block *sb, befs_small_data *sd) |
206 | { | 207 | { |
207 | } | 208 | } |
208 | 209 | ||
@@ -221,7 +222,8 @@ befs_dump_run(const struct super_block *sb, befs_disk_block_run run) | |||
221 | #endif /* 0 */ | 222 | #endif /* 0 */ |
222 | 223 | ||
223 | void | 224 | void |
224 | befs_dump_index_entry(const struct super_block *sb, befs_disk_btree_super * super) | 225 | befs_dump_index_entry(const struct super_block *sb, |
226 | befs_disk_btree_super *super) | ||
225 | { | 227 | { |
226 | #ifdef CONFIG_BEFS_DEBUG | 228 | #ifdef CONFIG_BEFS_DEBUG |
227 | 229 | ||
@@ -242,7 +244,7 @@ befs_dump_index_entry(const struct super_block *sb, befs_disk_btree_super * supe | |||
242 | } | 244 | } |
243 | 245 | ||
244 | void | 246 | void |
245 | befs_dump_index_node(const struct super_block *sb, befs_btree_nodehead * node) | 247 | befs_dump_index_node(const struct super_block *sb, befs_btree_nodehead *node) |
246 | { | 248 | { |
247 | #ifdef CONFIG_BEFS_DEBUG | 249 | #ifdef CONFIG_BEFS_DEBUG |
248 | 250 | ||