From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34060) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aB2zO-00072A-A8 for qemu-devel@nongnu.org; Mon, 21 Dec 2015 11:07:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aB2zN-0007iU-It for qemu-devel@nongnu.org; Mon, 21 Dec 2015 11:07:10 -0500 Received: from mx1.redhat.com ([209.132.183.28]:55101) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aB2zN-0007iK-Cx for qemu-devel@nongnu.org; Mon, 21 Dec 2015 11:07:09 -0500 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) by mx1.redhat.com (Postfix) with ESMTPS id 1DF9BC0A147A for ; Mon, 21 Dec 2015 16:07:09 +0000 (UTC) From: "Daniel P. Berrange" Date: Mon, 21 Dec 2015 16:06:54 +0000 Message-Id: <1450714014-16849-7-git-send-email-berrange@redhat.com> In-Reply-To: <1450714014-16849-1-git-send-email-berrange@redhat.com> References: <1450714014-16849-1-git-send-email-berrange@redhat.com> Subject: [Qemu-devel] [PATCH 6/6] crypto: fix transposed arguments in cipher error message List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Markus Armbruster When reporting an incorrect key length for a cipher, we mixed up the actual vs expected arguments. Signed-off-by: Daniel P. Berrange --- crypto/cipher.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crypto/cipher.c b/crypto/cipher.c index e92d49a..a69ff5e 100644 --- a/crypto/cipher.c +++ b/crypto/cipher.c @@ -89,7 +89,7 @@ qcrypto_cipher_validate_key_length(QCryptoCipherAlgorithm alg, if (alg_key_len[alg] != nkey) { error_setg(errp, "Cipher key length %zu should be %zu", - alg_key_len[alg], nkey); + nkey, alg_key_len[alg]); return false; } return true; -- 2.5.0