diff options
Diffstat (limited to 'fs/hfs/dir.c')
-rw-r--r-- | fs/hfs/dir.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/fs/hfs/dir.c b/fs/hfs/dir.c index e1f24befba58..534e5a7480ef 100644 --- a/fs/hfs/dir.c +++ b/fs/hfs/dir.c | |||
@@ -81,12 +81,12 @@ static int hfs_readdir(struct file *filp, void *dirent, filldir_t filldir) | |||
81 | case 1: | 81 | case 1: |
82 | hfs_bnode_read(fd.bnode, &entry, fd.entryoffset, fd.entrylength); | 82 | hfs_bnode_read(fd.bnode, &entry, fd.entryoffset, fd.entrylength); |
83 | if (entry.type != HFS_CDR_THD) { | 83 | if (entry.type != HFS_CDR_THD) { |
84 | printk("HFS: bad catalog folder thread\n"); | 84 | printk(KERN_ERR "hfs: bad catalog folder thread\n"); |
85 | err = -EIO; | 85 | err = -EIO; |
86 | goto out; | 86 | goto out; |
87 | } | 87 | } |
88 | //if (fd.entrylength < HFS_MIN_THREAD_SZ) { | 88 | //if (fd.entrylength < HFS_MIN_THREAD_SZ) { |
89 | // printk("HFS: truncated catalog thread\n"); | 89 | // printk(KERN_ERR "hfs: truncated catalog thread\n"); |
90 | // err = -EIO; | 90 | // err = -EIO; |
91 | // goto out; | 91 | // goto out; |
92 | //} | 92 | //} |
@@ -105,7 +105,7 @@ static int hfs_readdir(struct file *filp, void *dirent, filldir_t filldir) | |||
105 | 105 | ||
106 | for (;;) { | 106 | for (;;) { |
107 | if (be32_to_cpu(fd.key->cat.ParID) != inode->i_ino) { | 107 | if (be32_to_cpu(fd.key->cat.ParID) != inode->i_ino) { |
108 | printk("HFS: walked past end of dir\n"); | 108 | printk(KERN_ERR "hfs: walked past end of dir\n"); |
109 | err = -EIO; | 109 | err = -EIO; |
110 | goto out; | 110 | goto out; |
111 | } | 111 | } |
@@ -114,7 +114,7 @@ static int hfs_readdir(struct file *filp, void *dirent, filldir_t filldir) | |||
114 | len = hfs_mac2asc(sb, strbuf, &fd.key->cat.CName); | 114 | len = hfs_mac2asc(sb, strbuf, &fd.key->cat.CName); |
115 | if (type == HFS_CDR_DIR) { | 115 | if (type == HFS_CDR_DIR) { |
116 | if (fd.entrylength < sizeof(struct hfs_cat_dir)) { | 116 | if (fd.entrylength < sizeof(struct hfs_cat_dir)) { |
117 | printk("HFS: small dir entry\n"); | 117 | printk(KERN_ERR "hfs: small dir entry\n"); |
118 | err = -EIO; | 118 | err = -EIO; |
119 | goto out; | 119 | goto out; |
120 | } | 120 | } |
@@ -123,7 +123,7 @@ static int hfs_readdir(struct file *filp, void *dirent, filldir_t filldir) | |||
123 | break; | 123 | break; |
124 | } else if (type == HFS_CDR_FIL) { | 124 | } else if (type == HFS_CDR_FIL) { |
125 | if (fd.entrylength < sizeof(struct hfs_cat_file)) { | 125 | if (fd.entrylength < sizeof(struct hfs_cat_file)) { |
126 | printk("HFS: small file entry\n"); | 126 | printk(KERN_ERR "hfs: small file entry\n"); |
127 | err = -EIO; | 127 | err = -EIO; |
128 | goto out; | 128 | goto out; |
129 | } | 129 | } |
@@ -131,7 +131,7 @@ static int hfs_readdir(struct file *filp, void *dirent, filldir_t filldir) | |||
131 | be32_to_cpu(entry.file.FlNum), DT_REG)) | 131 | be32_to_cpu(entry.file.FlNum), DT_REG)) |
132 | break; | 132 | break; |
133 | } else { | 133 | } else { |
134 | printk("HFS: bad catalog entry type %d\n", type); | 134 | printk(KERN_ERR "hfs: bad catalog entry type %d\n", type); |
135 | err = -EIO; | 135 | err = -EIO; |
136 | goto out; | 136 | goto out; |
137 | } | 137 | } |