Re: [PATCH] ecryptfs: add missing \n to end of various error messages

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 09/27/2016 07:18 AM, Colin King wrote:
> From: Colin Ian King <colin.king@xxxxxxxxxxxxx>
> 
> Trival fix, some error messages are missing a \n, so add it.
> 
> Signed-off-by: Colin Ian King <colin.king@xxxxxxxxxxxxx>

This looks good to me. I'll take it from here. Thanks!

Tyler

> ---
>  fs/ecryptfs/keystore.c | 2 +-
>  fs/ecryptfs/main.c     | 2 +-
>  fs/ecryptfs/miscdev.c  | 2 +-
>  3 files changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/fs/ecryptfs/keystore.c b/fs/ecryptfs/keystore.c
> index 3cf1546..11d39ab 100644
> --- a/fs/ecryptfs/keystore.c
> +++ b/fs/ecryptfs/keystore.c
> @@ -1326,7 +1326,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;
>  	}
> diff --git a/fs/ecryptfs/main.c b/fs/ecryptfs/main.c
> index 6120044..3c41b35 100644
> --- a/fs/ecryptfs/main.c
> +++ b/fs/ecryptfs/main.c
> @@ -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;
> diff --git a/fs/ecryptfs/miscdev.c b/fs/ecryptfs/miscdev.c
> index e4141f2..595e684 100644
> --- a/fs/ecryptfs/miscdev.c
> +++ b/fs/ecryptfs/miscdev.c
> @@ -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;
>  	}
> 


Attachment: signature.asc
Description: OpenPGP digital signature


[Index of Archives]     [Linux Crypto]     [Device Mapper Crypto]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux