diff options
Diffstat (limited to 'fs/qnx6/dir.c')
| -rw-r--r-- | fs/qnx6/dir.c | 26 |
1 files changed, 12 insertions, 14 deletions
diff --git a/fs/qnx6/dir.c b/fs/qnx6/dir.c index 15b7d92ed60d..8d64bb5366bf 100644 --- a/fs/qnx6/dir.c +++ b/fs/qnx6/dir.c | |||
| @@ -77,21 +77,20 @@ static int qnx6_dir_longfilename(struct inode *inode, | |||
| 77 | if (de->de_size != 0xff) { | 77 | if (de->de_size != 0xff) { |
| 78 | /* error - long filename entries always have size 0xff | 78 | /* error - long filename entries always have size 0xff |
| 79 | in direntry */ | 79 | in direntry */ |
| 80 | printk(KERN_ERR "qnx6: invalid direntry size (%i).\n", | 80 | pr_err("invalid direntry size (%i).\n", de->de_size); |
| 81 | de->de_size); | ||
| 82 | return 0; | 81 | return 0; |
| 83 | } | 82 | } |
| 84 | lf = qnx6_longname(s, de, &page); | 83 | lf = qnx6_longname(s, de, &page); |
| 85 | if (IS_ERR(lf)) { | 84 | if (IS_ERR(lf)) { |
| 86 | printk(KERN_ERR "qnx6:Error reading longname\n"); | 85 | pr_err("Error reading longname\n"); |
| 87 | return 0; | 86 | return 0; |
| 88 | } | 87 | } |
| 89 | 88 | ||
| 90 | lf_size = fs16_to_cpu(sbi, lf->lf_size); | 89 | lf_size = fs16_to_cpu(sbi, lf->lf_size); |
| 91 | 90 | ||
| 92 | if (lf_size > QNX6_LONG_NAME_MAX) { | 91 | if (lf_size > QNX6_LONG_NAME_MAX) { |
| 93 | QNX6DEBUG((KERN_INFO "file %s\n", lf->lf_fname)); | 92 | pr_debug("file %s\n", lf->lf_fname); |
| 94 | printk(KERN_ERR "qnx6:Filename too long (%i)\n", lf_size); | 93 | pr_err("Filename too long (%i)\n", lf_size); |
| 95 | qnx6_put_page(page); | 94 | qnx6_put_page(page); |
| 96 | return 0; | 95 | return 0; |
| 97 | } | 96 | } |
| @@ -100,10 +99,10 @@ static int qnx6_dir_longfilename(struct inode *inode, | |||
| 100 | mmi 3g filesystem does not have that checksum */ | 99 | mmi 3g filesystem does not have that checksum */ |
| 101 | if (!test_opt(s, MMI_FS) && fs32_to_cpu(sbi, de->de_checksum) != | 100 | if (!test_opt(s, MMI_FS) && fs32_to_cpu(sbi, de->de_checksum) != |
| 102 | qnx6_lfile_checksum(lf->lf_fname, lf_size)) | 101 | qnx6_lfile_checksum(lf->lf_fname, lf_size)) |
| 103 | printk(KERN_INFO "qnx6: long filename checksum error.\n"); | 102 | pr_info("long filename checksum error.\n"); |
| 104 | 103 | ||
| 105 | QNX6DEBUG((KERN_INFO "qnx6_readdir:%.*s inode:%u\n", | 104 | pr_debug("qnx6_readdir:%.*s inode:%u\n", |
| 106 | lf_size, lf->lf_fname, de_inode)); | 105 | lf_size, lf->lf_fname, de_inode); |
| 107 | if (!dir_emit(ctx, lf->lf_fname, lf_size, de_inode, DT_UNKNOWN)) { | 106 | if (!dir_emit(ctx, lf->lf_fname, lf_size, de_inode, DT_UNKNOWN)) { |
| 108 | qnx6_put_page(page); | 107 | qnx6_put_page(page); |
| 109 | return 0; | 108 | return 0; |
| @@ -136,7 +135,7 @@ static int qnx6_readdir(struct file *file, struct dir_context *ctx) | |||
| 136 | int i = start; | 135 | int i = start; |
| 137 | 136 | ||
| 138 | if (IS_ERR(page)) { | 137 | if (IS_ERR(page)) { |
| 139 | printk(KERN_ERR "qnx6_readdir: read failed\n"); | 138 | pr_err("%s(): read failed\n", __func__); |
| 140 | ctx->pos = (n + 1) << PAGE_CACHE_SHIFT; | 139 | ctx->pos = (n + 1) << PAGE_CACHE_SHIFT; |
| 141 | return PTR_ERR(page); | 140 | return PTR_ERR(page); |
| 142 | } | 141 | } |
| @@ -159,9 +158,9 @@ static int qnx6_readdir(struct file *file, struct dir_context *ctx) | |||
| 159 | break; | 158 | break; |
| 160 | } | 159 | } |
| 161 | } else { | 160 | } else { |
| 162 | QNX6DEBUG((KERN_INFO "qnx6_readdir:%.*s" | 161 | pr_debug("%s():%.*s inode:%u\n", |
| 163 | " inode:%u\n", size, de->de_fname, | 162 | __func__, size, de->de_fname, |
| 164 | no_inode)); | 163 | no_inode); |
| 165 | if (!dir_emit(ctx, de->de_fname, size, | 164 | if (!dir_emit(ctx, de->de_fname, size, |
| 166 | no_inode, DT_UNKNOWN)) { | 165 | no_inode, DT_UNKNOWN)) { |
| 167 | done = true; | 166 | done = true; |
| @@ -259,8 +258,7 @@ unsigned qnx6_find_entry(int len, struct inode *dir, const char *name, | |||
| 259 | if (ino) | 258 | if (ino) |
| 260 | goto found; | 259 | goto found; |
| 261 | } else | 260 | } else |
| 262 | printk(KERN_ERR "qnx6: undefined " | 261 | pr_err("undefined filename size in inode.\n"); |
| 263 | "filename size in inode.\n"); | ||
| 264 | } | 262 | } |
| 265 | qnx6_put_page(page); | 263 | qnx6_put_page(page); |
| 266 | } | 264 | } |
