aboutsummaryrefslogtreecommitdiffstats
path: root/fs/efs/super.c
diff options
context:
space:
mode:
authorFabian Frederick <fabf@skynet.be>2014-06-04 19:12:13 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2014-06-04 19:54:21 -0400
commitd1826f2a3d64f76b18e9ac4a6874c5db5be24750 (patch)
tree7b69ceda50439632f982611f94e39998533b2526 /fs/efs/super.c
parentf403d1dbac6d1ef28f553f3996d5bb5cea90ce15 (diff)
fs/efs: convert printk(KERN_DEBUG to pr_debug
All KERN_DEBUG callsites being under #ifdef DEBUG we can safely convert everything to pr_debug without changing current behaviour. Remove #ifdef DEBUG around pr_debugs only (suggested by Joe Perches) Signed-off-by: Fabian Frederick <fabf@skynet.be> Cc: Joe Perches <joe@perches.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/efs/super.c')
-rw-r--r--fs/efs/super.c18
1 files changed, 8 insertions, 10 deletions
diff --git a/fs/efs/super.c b/fs/efs/super.c
index cd1399e5fc83..7fca462ea4e3 100644
--- a/fs/efs/super.c
+++ b/fs/efs/super.c
@@ -184,7 +184,7 @@ static efs_block_t efs_validate_vh(struct volume_header *vh) {
184 } 184 }
185 185
186#ifdef DEBUG 186#ifdef DEBUG
187 printk(KERN_DEBUG "EFS: bf: \"%16s\"\n", vh->vh_bootfile); 187 pr_debug("bf: \"%16s\"\n", vh->vh_bootfile);
188 188
189 for(i = 0; i < NVDIR; i++) { 189 for(i = 0; i < NVDIR; i++) {
190 int j; 190 int j;
@@ -196,9 +196,8 @@ static efs_block_t efs_validate_vh(struct volume_header *vh) {
196 name[j] = (char) 0; 196 name[j] = (char) 0;
197 197
198 if (name[0]) { 198 if (name[0]) {
199 printk(KERN_DEBUG "EFS: vh: %8s block: 0x%08x size: 0x%08x\n", 199 pr_debug("vh: %8s block: 0x%08x size: 0x%08x\n",
200 name, 200 name, (int) be32_to_cpu(vh->vh_vd[i].vd_lbn),
201 (int) be32_to_cpu(vh->vh_vd[i].vd_lbn),
202 (int) be32_to_cpu(vh->vh_vd[i].vd_nbytes)); 201 (int) be32_to_cpu(vh->vh_vd[i].vd_nbytes));
203 } 202 }
204 } 203 }
@@ -211,12 +210,11 @@ static efs_block_t efs_validate_vh(struct volume_header *vh) {
211 } 210 }
212#ifdef DEBUG 211#ifdef DEBUG
213 if (be32_to_cpu(vh->vh_pt[i].pt_nblks)) { 212 if (be32_to_cpu(vh->vh_pt[i].pt_nblks)) {
214 printk(KERN_DEBUG "EFS: pt %2d: start: %08d size: %08d type: 0x%02x (%s)\n", 213 pr_debug("pt %2d: start: %08d size: %08d type: 0x%02x (%s)\n",
215 i, 214 i, (int)be32_to_cpu(vh->vh_pt[i].pt_firstlbn),
216 (int) be32_to_cpu(vh->vh_pt[i].pt_firstlbn), 215 (int)be32_to_cpu(vh->vh_pt[i].pt_nblks),
217 (int) be32_to_cpu(vh->vh_pt[i].pt_nblks), 216 pt_type, (pt_entry->pt_name) ?
218 pt_type, 217 pt_entry->pt_name : "unknown");
219 (pt_entry->pt_name) ? pt_entry->pt_name : "unknown");
220 } 218 }
221#endif 219#endif
222 if (IS_EFS(pt_type)) { 220 if (IS_EFS(pt_type)) {