diff options
author | Jeff Layton <jlayton@redhat.com> | 2012-07-23 13:14:28 -0400 |
---|---|---|
committer | Steve French <smfrench@gmail.com> | 2012-07-23 17:36:26 -0400 |
commit | ac3aa2f8ae29c186c4742d15e39712af417c6d68 (patch) | |
tree | c2cc038cf4ad883d0f4085c5430db14af27e1328 /fs/cifs/link.c | |
parent | 00401ff780c58b9dabffef668386c206efc71c7c (diff) |
cifs: remove extraneous newlines from cERROR and cFYI calls
Those macros add a newline on their own, so there's not any need to
embed one in the message itself.
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <smfrench@gmail.com>
Diffstat (limited to 'fs/cifs/link.c')
-rw-r--r-- | fs/cifs/link.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/fs/cifs/link.c b/fs/cifs/link.c index 6b0e06434391..90d8add2a2a9 100644 --- a/fs/cifs/link.c +++ b/fs/cifs/link.c | |||
@@ -56,14 +56,14 @@ symlink_hash(unsigned int link_len, const char *link_str, u8 *md5_hash) | |||
56 | md5 = crypto_alloc_shash("md5", 0, 0); | 56 | md5 = crypto_alloc_shash("md5", 0, 0); |
57 | if (IS_ERR(md5)) { | 57 | if (IS_ERR(md5)) { |
58 | rc = PTR_ERR(md5); | 58 | rc = PTR_ERR(md5); |
59 | cERROR(1, "%s: Crypto md5 allocation error %d\n", __func__, rc); | 59 | cERROR(1, "%s: Crypto md5 allocation error %d", __func__, rc); |
60 | return rc; | 60 | return rc; |
61 | } | 61 | } |
62 | size = sizeof(struct shash_desc) + crypto_shash_descsize(md5); | 62 | size = sizeof(struct shash_desc) + crypto_shash_descsize(md5); |
63 | sdescmd5 = kmalloc(size, GFP_KERNEL); | 63 | sdescmd5 = kmalloc(size, GFP_KERNEL); |
64 | if (!sdescmd5) { | 64 | if (!sdescmd5) { |
65 | rc = -ENOMEM; | 65 | rc = -ENOMEM; |
66 | cERROR(1, "%s: Memory allocation failure\n", __func__); | 66 | cERROR(1, "%s: Memory allocation failure", __func__); |
67 | goto symlink_hash_err; | 67 | goto symlink_hash_err; |
68 | } | 68 | } |
69 | sdescmd5->shash.tfm = md5; | 69 | sdescmd5->shash.tfm = md5; |
@@ -71,17 +71,17 @@ symlink_hash(unsigned int link_len, const char *link_str, u8 *md5_hash) | |||
71 | 71 | ||
72 | rc = crypto_shash_init(&sdescmd5->shash); | 72 | rc = crypto_shash_init(&sdescmd5->shash); |
73 | if (rc) { | 73 | if (rc) { |
74 | cERROR(1, "%s: Could not init md5 shash\n", __func__); | 74 | cERROR(1, "%s: Could not init md5 shash", __func__); |
75 | goto symlink_hash_err; | 75 | goto symlink_hash_err; |
76 | } | 76 | } |
77 | rc = crypto_shash_update(&sdescmd5->shash, link_str, link_len); | 77 | rc = crypto_shash_update(&sdescmd5->shash, link_str, link_len); |
78 | if (rc) { | 78 | if (rc) { |
79 | cERROR(1, "%s: Could not update iwth link_str\n", __func__); | 79 | cERROR(1, "%s: Could not update iwth link_str", __func__); |
80 | goto symlink_hash_err; | 80 | goto symlink_hash_err; |
81 | } | 81 | } |
82 | rc = crypto_shash_final(&sdescmd5->shash, md5_hash); | 82 | rc = crypto_shash_final(&sdescmd5->shash, md5_hash); |
83 | if (rc) | 83 | if (rc) |
84 | cERROR(1, "%s: Could not generate md5 hash\n", __func__); | 84 | cERROR(1, "%s: Could not generate md5 hash", __func__); |
85 | 85 | ||
86 | symlink_hash_err: | 86 | symlink_hash_err: |
87 | crypto_free_shash(md5); | 87 | crypto_free_shash(md5); |
@@ -115,7 +115,7 @@ CIFSParseMFSymlink(const u8 *buf, | |||
115 | 115 | ||
116 | rc = symlink_hash(link_len, link_str, md5_hash); | 116 | rc = symlink_hash(link_len, link_str, md5_hash); |
117 | if (rc) { | 117 | if (rc) { |
118 | cFYI(1, "%s: MD5 hash failure: %d\n", __func__, rc); | 118 | cFYI(1, "%s: MD5 hash failure: %d", __func__, rc); |
119 | return rc; | 119 | return rc; |
120 | } | 120 | } |
121 | 121 | ||
@@ -154,7 +154,7 @@ CIFSFormatMFSymlink(u8 *buf, unsigned int buf_len, const char *link_str) | |||
154 | 154 | ||
155 | rc = symlink_hash(link_len, link_str, md5_hash); | 155 | rc = symlink_hash(link_len, link_str, md5_hash); |
156 | if (rc) { | 156 | if (rc) { |
157 | cFYI(1, "%s: MD5 hash failure: %d\n", __func__, rc); | 157 | cFYI(1, "%s: MD5 hash failure: %d", __func__, rc); |
158 | return rc; | 158 | return rc; |
159 | } | 159 | } |
160 | 160 | ||