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>
This commit is contained in:

committad av
Jan Kara

förälder
a40ecd7b3c
incheckning
78ace70c41
@@ -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;
|
||||
}
|
||||
|
||||
|
Referens i nytt ärende
Block a user