Skip to content

Commit 3b7f363

Browse files
tobluxtyhicks
authored andcommitted
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". Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev> Signed-off-by: Tyler Hicks <code@tyhicks.com>
1 parent 8b9bf58 commit 3b7f363

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

fs/ecryptfs/crypto.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1376,9 +1376,9 @@ ecryptfs_encrypt_filename(struct ecryptfs_filename *filename,
13761376
mount_crypt_stat, NULL,
13771377
filename->filename_size);
13781378
if (rc) {
1379-
printk(KERN_ERR "%s: Error attempting to get packet "
1380-
"size for tag 72; rc = [%d]\n", __func__,
1381-
rc);
1379+
ecryptfs_printk(KERN_ERR,
1380+
"Error attempting to get packet size for tag 70; rc = [%d]\n",
1381+
rc);
13821382
filename->encrypted_filename_size = 0;
13831383
goto out;
13841384
}

0 commit comments

Comments
 (0)