diff options
author | Joe Perches <joe@perches.com> | 2011-10-10 04:08:03 -0400 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2011-10-10 13:29:01 -0400 |
commit | 8076c363da15e7c35a4094974d1b4bcc196b5fa9 (patch) | |
tree | e15e500b2371cc41c736433aeb8840c28fe9c4da /fs/udf/misc.c | |
parent | 7e273e3b41e32716dc122b293b5f15635af495ff (diff) |
udf: Rename udf_error to udf_err
Rename udf_error to udf_err for consistency with normal logging
uses of pr_err.
Rename function udf_err to _udf_err.
Remove __func__ from uses and move __func__ to a new udf_err
macro that calls _udf_err.
Some of the udf_error uses had \n terminations, some did not so
standardize \n's to udf_err uses, remove \n from _udf_err function.
Coalesce udf_err formats.
One message prefixed with udf_read_super is now prefixed with
udf_fill_super.
Reviewed-by: NamJae Jeon <linkinjeon@gmail.com>
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'fs/udf/misc.c')
-rw-r--r-- | fs/udf/misc.c | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/fs/udf/misc.c b/fs/udf/misc.c index a85fa7c55b0a..c175b4dabc14 100644 --- a/fs/udf/misc.c +++ b/fs/udf/misc.c | |||
@@ -212,8 +212,8 @@ struct buffer_head *udf_read_tagged(struct super_block *sb, uint32_t block, | |||
212 | 212 | ||
213 | bh = udf_tread(sb, block); | 213 | bh = udf_tread(sb, block); |
214 | if (!bh) { | 214 | if (!bh) { |
215 | udf_error(sb, __func__, "read failed, block=%u, location=%d\n", | 215 | udf_err(sb, "read failed, block=%u, location=%d\n", |
216 | block, location); | 216 | block, location); |
217 | return NULL; | 217 | return NULL; |
218 | } | 218 | } |
219 | 219 | ||
@@ -230,18 +230,16 @@ struct buffer_head *udf_read_tagged(struct super_block *sb, uint32_t block, | |||
230 | /* Verify the tag checksum */ | 230 | /* Verify the tag checksum */ |
231 | checksum = udf_tag_checksum(tag_p); | 231 | checksum = udf_tag_checksum(tag_p); |
232 | if (checksum != tag_p->tagChecksum) { | 232 | if (checksum != tag_p->tagChecksum) { |
233 | udf_error(sb, __func__, | 233 | udf_err(sb, "tag checksum failed, block %u: 0x%02x != 0x%02x\n", |
234 | "tag checksum failed, block %u: 0x%02x != 0x%02x\n", | 234 | block, checksum, tag_p->tagChecksum); |
235 | block, checksum, tag_p->tagChecksum); | ||
236 | goto error_out; | 235 | goto error_out; |
237 | } | 236 | } |
238 | 237 | ||
239 | /* Verify the tag version */ | 238 | /* Verify the tag version */ |
240 | if (tag_p->descVersion != cpu_to_le16(0x0002U) && | 239 | if (tag_p->descVersion != cpu_to_le16(0x0002U) && |
241 | tag_p->descVersion != cpu_to_le16(0x0003U)) { | 240 | tag_p->descVersion != cpu_to_le16(0x0003U)) { |
242 | udf_error(sb, __func__, | 241 | udf_err(sb, "tag version 0x%04x != 0x0002 || 0x0003, block %u\n", |
243 | "tag version 0x%04x != 0x0002 || 0x0003, block %u\n", | 242 | le16_to_cpu(tag_p->descVersion), block); |
244 | le16_to_cpu(tag_p->descVersion), block); | ||
245 | goto error_out; | 243 | goto error_out; |
246 | } | 244 | } |
247 | 245 | ||
@@ -253,8 +251,8 @@ struct buffer_head *udf_read_tagged(struct super_block *sb, uint32_t block, | |||
253 | return bh; | 251 | return bh; |
254 | 252 | ||
255 | udf_debug("Crc failure block %d: crc = %d, crclen = %d\n", block, | 253 | udf_debug("Crc failure block %d: crc = %d, crclen = %d\n", block, |
256 | le16_to_cpu(tag_p->descCRC), le16_to_cpu(tag_p->descCRCLength)); | 254 | le16_to_cpu(tag_p->descCRC), |
257 | 255 | le16_to_cpu(tag_p->descCRCLength)); | |
258 | error_out: | 256 | error_out: |
259 | brelse(bh); | 257 | brelse(bh); |
260 | return NULL; | 258 | return NULL; |