diff options
author | Joe Perches <joe@perches.com> | 2011-10-10 12:08:05 +0400 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2011-11-01 02:43:52 +0400 |
commit | 78ace70c4186c0d18314eb001637aa97d1585e65 (patch) | |
tree | 34227a6d50b93eb66df22ba130bea8ed932a5896 /fs/udf/directory.c | |
parent | a40ecd7b3ccf520ff02da93e8d1ba6cd55c2e359 (diff) | |
download | linux-78ace70c4186c0d18314eb001637aa97d1585e65.tar.xz |
udf: Convert printks to pr_<level>
Use the current logging styles.
Convert a few printks that should have been udf_warn and udf_err.
Coalesce formats. Add #define pr_fmt.
Move an #include "udfdecls.h" above other includes in udftime.c
so pr_fmt works correctly. Strip prefixes from conversions as appropriate.
Reorder logging definitions in udfdecl.h
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'fs/udf/directory.c')
-rw-r--r-- | fs/udf/directory.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/udf/directory.c b/fs/udf/directory.c index 2ffdb6733af1..4e0843897d07 100644 --- a/fs/udf/directory.c +++ b/fs/udf/directory.c @@ -201,7 +201,7 @@ struct short_ad *udf_get_fileshortad(uint8_t *ptr, int maxoffset, uint32_t *offs struct short_ad *sa; if ((!ptr) || (!offset)) { - printk(KERN_ERR "udf: udf_get_fileshortad() invalidparms\n"); + pr_err("%s: invalidparms\n", __func__); return NULL; } @@ -223,7 +223,7 @@ struct long_ad *udf_get_filelongad(uint8_t *ptr, int maxoffset, uint32_t *offset struct long_ad *la; if ((!ptr) || (!offset)) { - printk(KERN_ERR "udf: udf_get_filelongad() invalidparms\n"); + pr_err("%s: invalidparms\n", __func__); return NULL; } |