Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

fs/hpfs: convert printk to pr_foo()

No level printk in hptfs_error converted to pr_err (others to pr_warn or
pr_info)

This patch also fixes if/then/else checkpatch warnings

Signed-off-by: Fabian Frederick <fabf@skynet.be>
Cc: Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Fabian Frederick and committed by
Linus Torvalds
b7cb1ce2 45641c82

+89 -67
+1 -1
fs/hpfs/alloc.c
··· 316 316 struct quad_buffer_head qbh; 317 317 __le32 *bmp; 318 318 struct hpfs_sb_info *sbi = hpfs_sb(s); 319 - /*printk("2 - ");*/ 319 + /*pr_info("2 - ");*/ 320 320 if (!n) return; 321 321 if (sec < 0x12) { 322 322 hpfs_error(s, "Trying to free reserved sector %08x", sec);
+6 -6
fs/hpfs/buffer.c
··· 55 55 if (bh != NULL) 56 56 return bh->b_data; 57 57 else { 58 - printk("HPFS: hpfs_map_sector: read error\n"); 58 + pr_warn("HPFS: hpfs_map_sector: read error\n"); 59 59 return NULL; 60 60 } 61 61 } ··· 76 76 set_buffer_uptodate(bh); 77 77 return bh->b_data; 78 78 } else { 79 - printk("HPFS: hpfs_get_sector: getblk failed\n"); 79 + pr_warn("HPFS: hpfs_get_sector: getblk failed\n"); 80 80 return NULL; 81 81 } 82 82 } ··· 93 93 cond_resched(); 94 94 95 95 if (secno & 3) { 96 - printk("HPFS: hpfs_map_4sectors: unaligned read\n"); 96 + pr_warn("HPFS: hpfs_map_4sectors: unaligned read\n"); 97 97 return NULL; 98 98 } 99 99 ··· 112 112 113 113 qbh->data = data = kmalloc(2048, GFP_NOFS); 114 114 if (!data) { 115 - printk("HPFS: hpfs_map_4sectors: out of memory\n"); 115 + pr_warn("HPFS: hpfs_map_4sectors: out of memory\n"); 116 116 goto bail4; 117 117 } 118 118 ··· 145 145 hpfs_lock_assert(s); 146 146 147 147 if (secno & 3) { 148 - printk("HPFS: hpfs_get_4sectors: unaligned read\n"); 148 + pr_warn("HPFS: hpfs_get_4sectors: unaligned read\n"); 149 149 return NULL; 150 150 } 151 151 ··· 161 161 } 162 162 163 163 if (!(qbh->data = kmalloc(2048, GFP_NOFS))) { 164 - printk("HPFS: hpfs_get_4sectors: out of memory\n"); 164 + pr_warn("HPFS: hpfs_get_4sectors: out of memory\n"); 165 165 goto bail4; 166 166 } 167 167 return qbh->data;
+3 -3
fs/hpfs/dir.c
··· 36 36 mutex_lock(&i->i_mutex); 37 37 hpfs_lock(s); 38 38 39 - /*printk("dir lseek\n");*/ 39 + /*pr_info("dir lseek\n");*/ 40 40 if (new_off == 0 || new_off == 1 || new_off == 11 || new_off == 12 || new_off == 13) goto ok; 41 41 pos = ((loff_t) hpfs_de_as_down_as_possible(s, hpfs_inode->i_dno) << 4) + 1; 42 42 while (pos != new_off) { ··· 51 51 mutex_unlock(&i->i_mutex); 52 52 return new_off; 53 53 fail: 54 - /*printk("illegal lseek: %016llx\n", new_off);*/ 54 + /*pr_warn("illegal lseek: %016llx\n", new_off);*/ 55 55 hpfs_unlock(s); 56 56 mutex_unlock(&i->i_mutex); 57 57 return -ESPIPE; ··· 127 127 if (ctx->pos == 12) 128 128 goto out; 129 129 if (ctx->pos == 3 || ctx->pos == 4 || ctx->pos == 5) { 130 - printk("HPFS: warning: pos==%d\n",(int)ctx->pos); 130 + pr_warn("HPFS: warning: pos==%d\n", (int)ctx->pos); 131 131 goto out; 132 132 } 133 133 if (ctx->pos == 0) {
+25 -17
fs/hpfs/dnode.c
··· 17 17 if (de == fde) return ((loff_t) le32_to_cpu(d->self) << 4) | (loff_t)i; 18 18 i++; 19 19 } 20 - printk("HPFS: get_pos: not_found\n"); 20 + pr_info("HPFS: get_pos: not_found\n"); 21 21 return ((loff_t)le32_to_cpu(d->self) << 4) | (loff_t)1; 22 22 } 23 23 ··· 32 32 if (hpfs_inode->i_rddir_off[i] == pos) return; 33 33 if (!(i&0x0f)) { 34 34 if (!(ppos = kmalloc((i+0x11) * sizeof(loff_t*), GFP_NOFS))) { 35 - printk("HPFS: out of memory for position list\n"); 35 + pr_warn("HPFS: out of memory for position list\n"); 36 36 return; 37 37 } 38 38 if (hpfs_inode->i_rddir_off) { ··· 63 63 } 64 64 return; 65 65 not_f: 66 - /*printk("HPFS: warning: position pointer %p->%08x not found\n", pos, (int)*pos);*/ 66 + /*pr_info("HPFS: warning: position pointer %p->%08x not found\n", 67 + pos, (int)*pos);*/ 67 68 return; 68 69 } 69 70 ··· 93 92 { 94 93 if ((*p & ~0x3f) == (d & ~0x3f) && (*p & 0x3f) >= (d & 0x3f)) { 95 94 int n = (*p & 0x3f) + c; 96 - if (n > 0x3f) printk("HPFS: hpfs_pos_ins: %08x + %d\n", (int)*p, (int)c >> 8); 97 - else *p = (*p & ~0x3f) | n; 95 + if (n > 0x3f) 96 + pr_warn("HPFS: hpfs_pos_ins: %08x + %d\n", 97 + (int)*p, (int)c >> 8); 98 + else 99 + *p = (*p & ~0x3f) | n; 98 100 } 99 101 } 100 102 ··· 105 101 { 106 102 if ((*p & ~0x3f) == (d & ~0x3f) && (*p & 0x3f) >= (d & 0x3f)) { 107 103 int n = (*p & 0x3f) - c; 108 - if (n < 1) printk("HPFS: hpfs_pos_ins: %08x - %d\n", (int)*p, (int)c >> 8); 109 - else *p = (*p & ~0x3f) | n; 104 + if (n < 1) 105 + pr_warn("HPFS: hpfs_pos_ins: %08x - %d\n", 106 + (int)*p, (int)c >> 8); 107 + else 108 + *p = (*p & ~0x3f) | n; 110 109 } 111 110 } 112 111 ··· 246 239 struct fnode *fnode; 247 240 int c1, c2 = 0; 248 241 if (!(nname = kmalloc(256, GFP_NOFS))) { 249 - printk("HPFS: out of memory, can't add to dnode\n"); 242 + pr_warn("HPFS: out of memory, can't add to dnode\n"); 250 243 return 1; 251 244 } 252 245 go_up: ··· 288 281 not be any error while splitting dnodes, otherwise the 289 282 whole directory, not only file we're adding, would 290 283 be lost. */ 291 - printk("HPFS: out of memory for dnode splitting\n"); 284 + pr_warn("HPFS: out of memory for dnode splitting\n"); 292 285 hpfs_brelse4(&qbh); 293 286 kfree(nname); 294 287 return 1; ··· 604 597 if (!de_next->down) goto endm; 605 598 ndown = de_down_pointer(de_next); 606 599 if (!(de_cp = kmalloc(le16_to_cpu(de->length), GFP_NOFS))) { 607 - printk("HPFS: out of memory for dtree balancing\n"); 600 + pr_warn("HPFS: out of memory for dtree balancing\n"); 608 601 goto endm; 609 602 } 610 603 memcpy(de_cp, de, le16_to_cpu(de->length)); ··· 619 612 hpfs_brelse4(&qbh1); 620 613 } 621 614 hpfs_add_to_dnode(i, ndown, de_cp->name, de_cp->namelen, de_cp, de_cp->down ? de_down_pointer(de_cp) : 0); 622 - /*printk("UP-TO-DNODE: %08x (ndown = %08x, down = %08x, dno = %08x)\n", up, ndown, down, dno);*/ 615 + /*pr_info("UP-TO-DNODE: %08x (ndown = %08x, down = %08x, dno = %08x)\n", 616 + up, ndown, down, dno);*/ 623 617 dno = up; 624 618 kfree(de_cp); 625 619 goto try_it_again; ··· 645 637 if (!dlp && down) { 646 638 if (le32_to_cpu(d1->first_free) > 2044) { 647 639 if (hpfs_sb(i->i_sb)->sb_chk >= 2) { 648 - printk("HPFS: warning: unbalanced dnode tree, see hpfs.txt 4 more info\n"); 649 - printk("HPFS: warning: terminating balancing operation\n"); 640 + pr_warn("HPFS: warning: unbalanced dnode tree, see hpfs.txt 4 more info\n"); 641 + pr_warn("HPFS: warning: terminating balancing operation\n"); 650 642 } 651 643 hpfs_brelse4(&qbh1); 652 644 goto endm; 653 645 } 654 646 if (hpfs_sb(i->i_sb)->sb_chk >= 2) { 655 - printk("HPFS: warning: unbalanced dnode tree, see hpfs.txt 4 more info\n"); 656 - printk("HPFS: warning: goin'on\n"); 647 + pr_warn("HPFS: warning: unbalanced dnode tree, see hpfs.txt 4 more info\n"); 648 + pr_warn("HPFS: warning: goin'on\n"); 657 649 } 658 650 le16_add_cpu(&del->length, 4); 659 651 del->down = 1; ··· 667 659 *(__le32 *) ((void *) del + le16_to_cpu(del->length) - 4) = cpu_to_le32(down); 668 660 } else goto endm; 669 661 if (!(de_cp = kmalloc(le16_to_cpu(de_prev->length), GFP_NOFS))) { 670 - printk("HPFS: out of memory for dtree balancing\n"); 662 + pr_warn("HPFS: out of memory for dtree balancing\n"); 671 663 hpfs_brelse4(&qbh1); 672 664 goto endm; 673 665 } ··· 1008 1000 int d1, d2 = 0; 1009 1001 name1 = f->name; 1010 1002 if (!(name2 = kmalloc(256, GFP_NOFS))) { 1011 - printk("HPFS: out of memory, can't map dirent\n"); 1003 + pr_warn("HPFS: out of memory, can't map dirent\n"); 1012 1004 return NULL; 1013 1005 } 1014 1006 if (f->len <= 15)
+3 -3
fs/hpfs/ea.c
··· 51 51 { 52 52 char *ret; 53 53 if (!(ret = kmalloc(size + 1, GFP_NOFS))) { 54 - printk("HPFS: out of memory for EA\n"); 54 + pr_warn("HPFS: out of memory for EA\n"); 55 55 return NULL; 56 56 } 57 57 if (hpfs_ea_read(s, a, ano, 0, size, ret)) { ··· 139 139 if (ea_indirect(ea)) 140 140 return get_indirect_ea(s, ea_in_anode(ea), ea_sec(ea), *size = ea_len(ea)); 141 141 if (!(ret = kmalloc((*size = ea_valuelen(ea)) + 1, GFP_NOFS))) { 142 - printk("HPFS: out of memory for EA\n"); 142 + pr_warn("HPFS: out of memory for EA\n"); 143 143 return NULL; 144 144 } 145 145 memcpy(ret, ea_data(ea), ea_valuelen(ea)); ··· 165 165 if (ea_indirect(ea)) 166 166 return get_indirect_ea(s, ea_in_anode(ea), ea_sec(ea), *size = ea_len(ea)); 167 167 if (!(ret = kmalloc((*size = ea_valuelen(ea)) + 1, GFP_NOFS))) { 168 - printk("HPFS: out of memory for EA\n"); 168 + pr_warn("HPFS: out of memory for EA\n"); 169 169 return NULL; 170 170 } 171 171 if (hpfs_ea_read(s, a, ano, pos + 4 + ea->namelen + 1, ea_valuelen(ea), ret)) {
+2 -1
fs/hpfs/inode.c
··· 183 183 struct inode *parent; 184 184 if (i->i_ino == hpfs_sb(i->i_sb)->sb_root) return; 185 185 if (hpfs_inode->i_rddir_off && !atomic_read(&i->i_count)) { 186 - if (*hpfs_inode->i_rddir_off) printk("HPFS: write_inode: some position still there\n"); 186 + if (*hpfs_inode->i_rddir_off) 187 + pr_warn("HPFS: write_inode: some position still there\n"); 187 188 kfree(hpfs_inode->i_rddir_off); 188 189 hpfs_inode->i_rddir_off = NULL; 189 190 }
+10 -7
fs/hpfs/map.c
··· 65 65 struct code_page_directory *cp = hpfs_map_sector(s, cps, &bh, 0); 66 66 if (!cp) return NULL; 67 67 if (le32_to_cpu(cp->magic) != CP_DIR_MAGIC) { 68 - printk("HPFS: Code page directory magic doesn't match (magic = %08x)\n", le32_to_cpu(cp->magic)); 68 + pr_warn("HPFS: Code page directory magic doesn't match (magic = %08x)\n", 69 + le32_to_cpu(cp->magic)); 69 70 brelse(bh); 70 71 return NULL; 71 72 } 72 73 if (!le32_to_cpu(cp->n_code_pages)) { 73 - printk("HPFS: n_code_pages == 0\n"); 74 + pr_warn("HPFS: n_code_pages == 0\n"); 74 75 brelse(bh); 75 76 return NULL; 76 77 } ··· 80 79 brelse(bh); 81 80 82 81 if (cpi >= 3) { 83 - printk("HPFS: Code page index out of array\n"); 82 + pr_warn("HPFS: Code page index out of array\n"); 84 83 return NULL; 85 84 } 86 85 87 86 if (!(cpd = hpfs_map_sector(s, cpds, &bh, 0))) return NULL; 88 87 if (le16_to_cpu(cpd->offs[cpi]) > 0x178) { 89 - printk("HPFS: Code page index out of sector\n"); 88 + pr_warn("HPFS: Code page index out of sector\n"); 90 89 brelse(bh); 91 90 return NULL; 92 91 } 93 92 ptr = (unsigned char *)cpd + le16_to_cpu(cpd->offs[cpi]) + 6; 94 93 if (!(cp_table = kmalloc(256, GFP_KERNEL))) { 95 - printk("HPFS: out of memory for code page table\n"); 94 + pr_warn("HPFS: out of memory for code page table\n"); 96 95 brelse(bh); 97 96 return NULL; 98 97 } ··· 115 114 int i; 116 115 __le32 *b; 117 116 if (!(b = kmalloc(n * 512, GFP_KERNEL))) { 118 - printk("HPFS: can't allocate memory for bitmap directory\n"); 117 + pr_warn("HPFS: can't allocate memory for bitmap directory\n"); 119 118 return NULL; 120 119 } 121 120 for (i=0;i<n;i++) { ··· 282 281 hpfs_error(s, "dnode %08x does not end with \\377 entry", secno); 283 282 goto bail; 284 283 } 285 - if (b == 3) printk("HPFS: warning: unbalanced dnode tree, dnode %08x; see hpfs.txt 4 more info\n", secno); 284 + if (b == 3) 285 + pr_warn("HPFS: warning: unbalanced dnode tree, dnode %08x; see hpfs.txt 4 more info\n", 286 + secno); 286 287 } 287 288 return dnode; 288 289 bail:
+6 -5
fs/hpfs/name.c
··· 56 56 unsigned char *to; 57 57 int i; 58 58 if (hpfs_sb(s)->sb_chk >= 2) if (hpfs_is_name_long(from, len) != lng) { 59 - printk("HPFS: Long name flag mismatch - name "); 60 - for (i=0; i<len; i++) printk("%c", from[i]); 61 - printk(" misidentified as %s.\n", lng ? "short" : "long"); 62 - printk("HPFS: It's nothing serious. It could happen because of bug in OS/2.\nHPFS: Set checks=normal to disable this message.\n"); 59 + pr_warn("HPFS: Long name flag mismatch - name "); 60 + for (i = 0; i < len; i++) 61 + pr_cont("%c", from[i]); 62 + pr_cont(" misidentified as %s.\n", lng ? "short" : "long"); 63 + pr_warn("HPFS: It's nothing serious. It could happen because of bug in OS/2.\nHPFS: Set checks=normal to disable this message.\n"); 63 64 } 64 65 if (!lc) return from; 65 66 if (!(to = kmalloc(len, GFP_KERNEL))) { 66 - printk("HPFS: can't allocate memory for name conversion buffer\n"); 67 + pr_warn("HPFS: can't allocate memory for name conversion buffer\n"); 67 68 return from; 68 69 } 69 70 for (i = 0; i < len; i++) to[i] = locase(hpfs_sb(s)->sb_cp_table,from[i]);
+1 -1
fs/hpfs/namei.c
··· 404 404 d_rehash(dentry); 405 405 } else { 406 406 struct iattr newattrs; 407 - /*printk("HPFS: truncating file before delete.\n");*/ 407 + /*pr_info("HPFS: truncating file before delete.\n");*/ 408 408 newattrs.ia_size = 0; 409 409 newattrs.ia_valid = ATTR_SIZE | ATTR_CTIME; 410 410 err = notify_change(dentry, &newattrs, NULL);
+32 -23
fs/hpfs/super.c
··· 62 62 vsnprintf(err_buf, sizeof(err_buf), fmt, args); 63 63 va_end(args); 64 64 65 - printk("HPFS: filesystem error: %s", err_buf); 65 + pr_err("HPFS: filesystem error: %s", err_buf); 66 66 if (!hpfs_sb(s)->sb_was_error) { 67 67 if (hpfs_sb(s)->sb_err == 2) { 68 - printk("; crashing the system because you wanted it\n"); 68 + pr_cont("; crashing the system because you wanted it\n"); 69 69 mark_dirty(s, 0); 70 70 panic("HPFS panic"); 71 71 } else if (hpfs_sb(s)->sb_err == 1) { 72 - if (s->s_flags & MS_RDONLY) printk("; already mounted read-only\n"); 72 + if (s->s_flags & MS_RDONLY) 73 + pr_cont("; already mounted read-only\n"); 73 74 else { 74 - printk("; remounting read-only\n"); 75 + pr_cont("; remounting read-only\n"); 75 76 mark_dirty(s, 0); 76 77 s->s_flags |= MS_RDONLY; 77 78 } 78 - } else if (s->s_flags & MS_RDONLY) printk("; going on - but anything won't be destroyed because it's read-only\n"); 79 - else printk("; corrupted filesystem mounted read/write - your computer will explode within 20 seconds ... but you wanted it so!\n"); 80 - } else printk("\n"); 79 + } else if (s->s_flags & MS_RDONLY) 80 + pr_cont("; going on - but anything won't be destroyed because it's read-only\n"); 81 + else 82 + pr_cont("; corrupted filesystem mounted read/write - your computer will explode within 20 seconds ... but you wanted it so!\n"); 83 + } else 84 + pr_cont("\n"); 81 85 hpfs_sb(s)->sb_was_error = 1; 82 86 } 83 87 ··· 296 292 if (!opts) 297 293 return 1; 298 294 299 - /*printk("Parsing opts: '%s'\n",opts);*/ 295 + /*pr_info("Parsing opts: '%s'\n",opts);*/ 300 296 301 297 while ((p = strsep(&opts, ",")) != NULL) { 302 298 substring_t args[MAX_OPT_ARGS]; ··· 391 387 392 388 static inline void hpfs_help(void) 393 389 { 394 - printk("\n\ 390 + pr_info("\n\ 395 391 HPFS filesystem options:\n\ 396 392 help do not mount and display this text\n\ 397 393 uid=xxx set uid of files that don't have uid specified in eas\n\ ··· 438 434 439 435 if (!(o = parse_opts(data, &uid, &gid, &umask, &lowercase, 440 436 &eas, &chk, &errs, &chkdsk, &timeshift))) { 441 - printk("HPFS: bad mount options.\n"); 437 + pr_warn("HPFS: bad mount options.\n"); 442 438 goto out_err; 443 439 } 444 440 if (o == 2) { ··· 446 442 goto out_err; 447 443 } 448 444 if (timeshift != sbi->sb_timeshift) { 449 - printk("HPFS: timeshift can't be changed using remount.\n"); 445 + pr_warn("HPFS: timeshift can't be changed using remount.\n"); 450 446 goto out_err; 451 447 } 452 448 ··· 527 523 528 524 if (!(o = parse_opts(options, &uid, &gid, &umask, &lowercase, 529 525 &eas, &chk, &errs, &chkdsk, &timeshift))) { 530 - printk("HPFS: bad mount options.\n"); 526 + pr_warn("HPFS: bad mount options.\n"); 531 527 goto bail0; 532 528 } 533 529 if (o==2) { ··· 546 542 if (/*le16_to_cpu(bootblock->magic) != BB_MAGIC 547 543 ||*/ le32_to_cpu(superblock->magic) != SB_MAGIC 548 544 || le32_to_cpu(spareblock->magic) != SP_MAGIC) { 549 - if (!silent) printk("HPFS: Bad magic ... probably not HPFS\n"); 545 + if (!silent) 546 + pr_warn("HPFS: Bad magic ... probably not HPFS\n"); 550 547 goto bail4; 551 548 } 552 549 553 550 /* Check version */ 554 551 if (!(s->s_flags & MS_RDONLY) && 555 552 superblock->funcversion != 2 && superblock->funcversion != 3) { 556 - printk("HPFS: Bad version %d,%d. Mount readonly to go around\n", 553 + pr_warn("HPFS: Bad version %d,%d. Mount readonly to go around\n", 557 554 (int)superblock->version, (int)superblock->funcversion); 558 - printk("HPFS: please try recent version of HPFS driver at http://artax.karlin.mff.cuni.cz/~mikulas/vyplody/hpfs/index-e.cgi and if it still can't understand this format, contact author - mikulas@artax.karlin.mff.cuni.cz\n"); 555 + pr_warn("HPFS: please try recent version of HPFS driver at http://artax.karlin.mff.cuni.cz/~mikulas/vyplody/hpfs/index-e.cgi and if it still can't understand this format, contact author - mikulas@artax.karlin.mff.cuni.cz\n"); 559 556 goto bail4; 560 557 } 561 558 ··· 602 597 /* Check for general fs errors*/ 603 598 if (spareblock->dirty && !spareblock->old_wrote) { 604 599 if (errs == 2) { 605 - printk("HPFS: Improperly stopped, not mounted\n"); 600 + pr_warn("HPFS: Improperly stopped, not mounted\n"); 606 601 goto bail4; 607 602 } 608 603 hpfs_error(s, "improperly stopped"); ··· 616 611 617 612 if (spareblock->hotfixes_used || spareblock->n_spares_used) { 618 613 if (errs >= 2) { 619 - printk("HPFS: Hotfixes not supported here, try chkdsk\n"); 614 + pr_warn("HPFS: Hotfixes not supported here, try chkdsk\n"); 620 615 mark_dirty(s, 0); 621 616 goto bail4; 622 617 } 623 618 hpfs_error(s, "hotfixes not supported here, try chkdsk"); 624 - if (errs == 0) printk("HPFS: Proceeding, but your filesystem will be probably corrupted by this driver...\n"); 625 - else printk("HPFS: This driver may read bad files or crash when operating on disk with hotfixes.\n"); 619 + if (errs == 0) 620 + pr_warn("HPFS: Proceeding, but your filesystem will be probably corrupted by this driver...\n"); 621 + else 622 + pr_warn("HPFS: This driver may read bad files or crash when operating on disk with hotfixes.\n"); 626 623 } 627 624 if (le32_to_cpu(spareblock->n_dnode_spares) != le32_to_cpu(spareblock->n_dnode_spares_free)) { 628 625 if (errs >= 2) { 629 - printk("HPFS: Spare dnodes used, try chkdsk\n"); 626 + pr_warn("HPFS: Spare dnodes used, try chkdsk\n"); 630 627 mark_dirty(s, 0); 631 628 goto bail4; 632 629 } 633 630 hpfs_error(s, "warning: spare dnodes used, try chkdsk"); 634 - if (errs == 0) printk("HPFS: Proceeding, but your filesystem could be corrupted if you delete files or directories\n"); 631 + if (errs == 0) 632 + pr_warn("HPFS: Proceeding, but your filesystem could be corrupted if you delete files or directories\n"); 635 633 } 636 634 if (chk) { 637 635 unsigned a; ··· 653 645 goto bail4; 654 646 } 655 647 sbi->sb_dirband_size = a; 656 - } else printk("HPFS: You really don't want any checks? You are crazy...\n"); 648 + } else 649 + pr_warn("HPFS: You really don't want any checks? You are crazy...\n"); 657 650 658 651 /* Load code page table */ 659 652 if (le32_to_cpu(spareblock->n_code_pages)) 660 653 if (!(sbi->sb_cp_table = hpfs_load_code_page(s, le32_to_cpu(spareblock->code_page_dir)))) 661 - printk("HPFS: Warning: code page support is disabled\n"); 654 + pr_warn("HPFS: Warning: code page support is disabled\n"); 662 655 663 656 brelse(bh2); 664 657 brelse(bh1);