From: Daniel P. Berrange Date: Fri, 20 Nov 2015 16:15:42 +0000 (+0000) Subject: crypto: fix transposed arguments in cipher error message X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=50de6261510301d586f0411b3fdb11e4cd4fdb52;p=qemu.git crypto: fix transposed arguments in cipher error message When reporting an incorrect key length for a cipher, we mixed up the actual vs expected arguments. Reviewed-by: Eric Blake Signed-off-by: Daniel P. Berrange --- diff --git a/crypto/cipher.c b/crypto/cipher.c index a24677c97f..7c333486d2 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;