]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
ecryptfs: Fix tag number in encrypt_filename() error message
authorThorsten Blum <thorsten.blum@linux.dev>
Thu, 5 Feb 2026 13:25:32 +0000 (14:25 +0100)
committerTyler Hicks <code@tyhicks.com>
Thu, 26 Mar 2026 03:39:27 +0000 (22:39 -0500)
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>
fs/ecryptfs/crypto.c

index 3b59346d68c594fcd7e27bae87849d3e19eff56e..ff001d9b4582cabe0c9d6ca4dfc79421993e0aa3 100644 (file)
@@ -1376,9 +1376,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;
                }