Skip to content

Commit 179d618

Browse files
Fabian Fredericksmfrench
authored andcommitted
fs/cifs/netmisc.c: convert printk to pr_foo()
Also fixes array checkpatch warning and converts it to static const (suggested by Joe Perches). Cc: Joe Perches <joe@perches.com> Cc: Steve French <sfrench@samba.org> Cc: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Fabian Frederick <fabf@skynet.be> Signed-off-by: Steve French <smfrench@gmail.com>
1 parent 571d597 commit 179d618

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

‎fs/cifs/netmisc.c‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -795,8 +795,8 @@ cifs_print_status(__u32 status_code)
795795
while (nt_errs[idx].nt_errstr != NULL) {
796796
if (((nt_errs[idx].nt_errcode) & 0xFFFFFF) ==
797797
(status_code & 0xFFFFFF)) {
798-
printk(KERN_NOTICE "Status code returned 0x%08x %s\n",
799-
status_code, nt_errs[idx].nt_errstr);
798+
pr_notice("Status code returned 0x%08x %s\n",
799+
status_code, nt_errs[idx].nt_errstr);
800800
}
801801
idx++;
802802
}
@@ -941,8 +941,9 @@ cifs_UnixTimeToNT(struct timespec t)
941941
return (u64) t.tv_sec * 10000000 + t.tv_nsec/100 + NTFS_TIME_OFFSET;
942942
}
943943

944-
static int total_days_of_prev_months[] =
945-
{0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334};
944+
static const int total_days_of_prev_months[] = {
945+
0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334
946+
};
946947

947948
struct timespec cnvrtDosUnixTm(__le16 le_date, __le16 le_time, int offset)
948949
{

0 commit comments

Comments
 (0)