Skip to contentSkip to conversation

ecryptfs: Fix tag number in encrypt_filename() error message

PATCH RESEND In review Thorsten Blum 2 participants 2 messages Feb 5 – Mar 26 Ecrypt file system

lore
Share & tools
lore
#0 lore raw

PATCH RESEND 1/1 ecryptfs: Fix tag number in encrypt_filename() error message

Report the correct tag number (70) instead of tag 72.

Use ecryptfs_printk() and reformat the string to silence the checkpatch
warning: "WARNING: quoted string split across lines".

---
 fs/ecryptfs/crypto.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
fs/ecryptfs/crypto.c +3 -3
index 260f8a4938b0..6012e4360096 100644
@@ -1378,9 +1378,9 @@ ecryptfs_encrypt_filename(struct ecryptfs_filename *filename,
 			mount_crypt_stat, NULL,
 			filename->filename_size);
 		if (rc) {
-			printk(KERN_ERR "%s: Error attempting to get packet "
-			       "size for tag 72; rc = [%d]\n", __func__,
-			       rc);
+			ecryptfs_printk(KERN_ERR,
+				"Error attempting to get packet size for tag 70; rc = [%d]\n",
+				rc);
 			filename->encrypted_filename_size = 0;
 			goto out;
 		}
Signature · 2 lines
Thorsten Blum <[email protected]>
GPG: 1D60 735E 8AEF 3BE4 73B6  9D84 7336 78FD 8DFE EAD4
maintainer
#1 lore raw
Quoted 4 lines · Thorsten Blum

Report the correct tag number (70) instead of tag 72.

Use ecryptfs_printk() and reformat the string to silence the checkpatch
warning: "WARNING: quoted string split across lines".

Thank you! This has been applied to the next branch of the tyhicks/ecryptfs.git tree.

You can find a direct link below but please be aware that the commit hash is unstable and, therefore, the URL may not be valid in the future.

[1/1] ecryptfs: Fix tag number in encrypt_filename() error message

      https://git.kernel.org/tyhicks/ecryptfs/c/3b7f363b7bba203318c77d91c131123cf059cdbb

Tyler