ecryptfs: add missing \n to end of various error messages
authorColin Ian King <colin.king@canonical.com>
Tue, 27 Sep 2016 12:18:02 +0000 (05:18 -0700)
committerTyler Hicks <tyhicks@canonical.com>
Sat, 4 Nov 2017 22:16:39 +0000 (22:16 +0000)
Trival fix, some error messages are missing a \n, so add it.

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Tyler Hicks <tyhicks@canonical.com>
fs/ecryptfs/keystore.c
fs/ecryptfs/main.c
fs/ecryptfs/miscdev.c

index fa218cd64f746d2c924a786edc1c6052911c1732..3eb1420cd310a77c885a988067de865928756776 100644 (file)
@@ -1333,7 +1333,7 @@ parse_tag_1_packet(struct ecryptfs_crypt_stat *crypt_stat,
        if ((*new_auth_tok)->session_key.encrypted_key_size
            > ECRYPTFS_MAX_ENCRYPTED_KEY_BYTES) {
                printk(KERN_WARNING "Tag 1 packet contains key larger "
-                      "than ECRYPTFS_MAX_ENCRYPTED_KEY_BYTES");
+                      "than ECRYPTFS_MAX_ENCRYPTED_KEY_BYTES\n");
                rc = -EINVAL;
                goto out;
        }
index 6b801186baa588ce996ed1a69cb6bc1dfe74b234..1a419c3b8d4f65a0686399b67a4259a4f5ee3bcf 100644 (file)
@@ -426,7 +426,7 @@ static int ecryptfs_parse_options(struct ecryptfs_sb_info *sbi, char *options,
                mount_crypt_stat->global_default_cipher_key_size);
        if (!cipher_code) {
                ecryptfs_printk(KERN_ERR,
-                               "eCryptfs doesn't support cipher: %s",
+                               "eCryptfs doesn't support cipher: %s\n",
                                mount_crypt_stat->global_default_cipher_name);
                rc = -EINVAL;
                goto out;
index e4141f2574953893377939f2362a673a62a609b9..595e684a95a55c2492ef451b82451b69bfab90e4 100644 (file)
@@ -383,7 +383,7 @@ ecryptfs_miscdev_write(struct file *file, const char __user *buf,
                goto memdup;
        } else if (count < MIN_MSG_PKT_SIZE || count > MAX_MSG_PKT_SIZE) {
                printk(KERN_WARNING "%s: Acceptable packet size range is "
-                      "[%d-%zu], but amount of data written is [%zu].",
+                      "[%d-%zu], but amount of data written is [%zu].\n",
                       __func__, MIN_MSG_PKT_SIZE, MAX_MSG_PKT_SIZE, count);
                return -EINVAL;
        }