Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756841AbcJRUzP (ORCPT ); Tue, 18 Oct 2016 16:55:15 -0400 Received: from mail.sigma-star.at ([95.130.255.111]:45997 "EHLO mail.sigma-star.at" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754130AbcJRUy5 (ORCPT ); Tue, 18 Oct 2016 16:54:57 -0400 From: Richard Weinberger To: linux-kernel@vger.kernel.org Cc: linux-fsdevel@vger.kernel.org, ebiggers@google.com, jaegeuk@kernel.org, tytso@mit.edu, Richard Weinberger Subject: [PATCH 1/2] fscrypto: Fix log string in do_crypto() Date: Tue, 18 Oct 2016 22:54:48 +0200 Message-Id: <1476824089-6841-2-git-send-email-richard@nod.at> X-Mailer: git-send-email 2.7.3 In-Reply-To: <1476824089-6841-1-git-send-email-richard@nod.at> References: <1476824089-6841-1-git-send-email-richard@nod.at> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 738 Lines: 25 The operations supports both encryption and decryption. Signed-off-by: Richard Weinberger --- fs/crypto/crypto.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/fs/crypto/crypto.c b/fs/crypto/crypto.c index 61057b7dbddb..1637a0450b9f 100644 --- a/fs/crypto/crypto.c +++ b/fs/crypto/crypto.c @@ -194,8 +194,9 @@ static int do_page_crypto(struct inode *inode, skcipher_request_free(req); if (res) { printk_ratelimited(KERN_ERR - "%s: crypto_skcipher_encrypt() returned %d\n", - __func__, res); + "%s: crypto_skcipher_%scrypt() returned %d, flags %#x\n", + __func__, rw == FS_DECRYPT ? "de" : "en", res, + crypto_skcipher_get_flags(tfm)); return res; } return 0; -- 2.7.3