aboutsummaryrefslogtreecommitdiffstats
path: root/fs/hpfs/name.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/hpfs/name.c')
-rw-r--r--fs/hpfs/name.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/fs/hpfs/name.c b/fs/hpfs/name.c
index 9acdf338def0..61ffd04bbf8e 100644
--- a/fs/hpfs/name.c
+++ b/fs/hpfs/name.c
@@ -56,14 +56,15 @@ unsigned char *hpfs_translate_name(struct super_block *s, unsigned char *from,
56 unsigned char *to; 56 unsigned char *to;
57 int i; 57 int i;
58 if (hpfs_sb(s)->sb_chk >= 2) if (hpfs_is_name_long(from, len) != lng) { 58 if (hpfs_sb(s)->sb_chk >= 2) if (hpfs_is_name_long(from, len) != lng) {
59 printk("HPFS: Long name flag mismatch - name "); 59 pr_warn("HPFS: Long name flag mismatch - name ");
60 for (i=0; i<len; i++) printk("%c", from[i]); 60 for (i = 0; i < len; i++)
61 printk(" misidentified as %s.\n", lng ? "short" : "long"); 61 pr_cont("%c", from[i]);
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"); 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 if (!lc) return from; 65 if (!lc) return from;
65 if (!(to = kmalloc(len, GFP_KERNEL))) { 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 return from; 68 return from;
68 } 69 }
69 for (i = 0; i < len; i++) to[i] = locase(hpfs_sb(s)->sb_cp_table,from[i]); 70 for (i = 0; i < len; i++) to[i] = locase(hpfs_sb(s)->sb_cp_table,from[i]);