diff options
author | Fabian Frederick <fabf@skynet.be> | 2014-05-13 13:30:33 -0400 |
---|---|---|
committer | Steve French <smfrench@gmail.com> | 2014-05-21 13:18:05 -0400 |
commit | 179d61839bafa924ff6f1960436339abdc911650 (patch) | |
tree | c4ab4415119ce65ea87373f5fe1442535d72ba0d /fs/cifs/netmisc.c | |
parent | 571d597206a94a042f9a3c9fdc2b9d7f33ab85e5 (diff) |
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>
Diffstat (limited to 'fs/cifs/netmisc.c')
-rw-r--r-- | fs/cifs/netmisc.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/fs/cifs/netmisc.c b/fs/cifs/netmisc.c index 049884552e76..6834b9c3bec1 100644 --- a/fs/cifs/netmisc.c +++ b/fs/cifs/netmisc.c | |||
@@ -795,8 +795,8 @@ cifs_print_status(__u32 status_code) | |||
795 | while (nt_errs[idx].nt_errstr != NULL) { | 795 | while (nt_errs[idx].nt_errstr != NULL) { |
796 | if (((nt_errs[idx].nt_errcode) & 0xFFFFFF) == | 796 | if (((nt_errs[idx].nt_errcode) & 0xFFFFFF) == |
797 | (status_code & 0xFFFFFF)) { | 797 | (status_code & 0xFFFFFF)) { |
798 | printk(KERN_NOTICE "Status code returned 0x%08x %s\n", | 798 | pr_notice("Status code returned 0x%08x %s\n", |
799 | status_code, nt_errs[idx].nt_errstr); | 799 | status_code, nt_errs[idx].nt_errstr); |
800 | } | 800 | } |
801 | idx++; | 801 | idx++; |
802 | } | 802 | } |
@@ -941,8 +941,9 @@ cifs_UnixTimeToNT(struct timespec t) | |||
941 | return (u64) t.tv_sec * 10000000 + t.tv_nsec/100 + NTFS_TIME_OFFSET; | 941 | return (u64) t.tv_sec * 10000000 + t.tv_nsec/100 + NTFS_TIME_OFFSET; |
942 | } | 942 | } |
943 | 943 | ||
944 | static int total_days_of_prev_months[] = | 944 | static const int total_days_of_prev_months[] = { |
945 | {0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334}; | 945 | 0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334 |
946 | }; | ||
946 | 947 | ||
947 | struct timespec cnvrtDosUnixTm(__le16 le_date, __le16 le_time, int offset) | 948 | struct timespec cnvrtDosUnixTm(__le16 le_date, __le16 le_time, int offset) |
948 | { | 949 | { |