diff options
author | Markus Armbruster | 2017-08-24 10:46:08 +0200 |
---|---|---|
committer | Markus Armbruster | 2017-09-04 13:09:13 +0200 |
commit | 977c736f80c232de7c6476d793ed575359c049d8 (patch) | |
tree | 986bf327e75929660aa367008574343e59818ee4 /crypto/cipher-afalg.c | |
parent | qapi: Generate FOO_str() macro for QAPI enum FOO (diff) | |
download | qemu-977c736f80c232de7c6476d793ed575359c049d8.tar.gz qemu-977c736f80c232de7c6476d793ed575359c049d8.tar.xz qemu-977c736f80c232de7c6476d793ed575359c049d8.zip |
qapi: Mechanically convert FOO_lookup[...] to FOO_str(...)
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <1503564371-26090-14-git-send-email-armbru@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Diffstat (limited to 'crypto/cipher-afalg.c')
-rw-r--r-- | crypto/cipher-afalg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/cipher-afalg.c b/crypto/cipher-afalg.c index 01343b2b7c..cd72284690 100644 --- a/crypto/cipher-afalg.c +++ b/crypto/cipher-afalg.c @@ -52,7 +52,7 @@ qcrypto_afalg_cipher_format_name(QCryptoCipherAlgorithm alg, return NULL; } - mode_name = QCryptoCipherMode_lookup[mode]; + mode_name = QCryptoCipherMode_str(mode); name = g_strdup_printf("%s(%s)", mode_name, alg_name); return name; |