commit | c4e2aff81bef7310a4139707f8f880dbd2bab6b4 | [log] [tgz] |
---|---|---|
author | Max Reitz <mreitz@redhat.com> | Fri Apr 05 21:16:35 2019 +0200 |
committer | Eric Blake <eblake@redhat.com> | Tue May 07 09:43:42 2019 -0500 |
tree | 7783b9d60074a03cfffd7f1d4738d7222681f400 | |
parent | 19eb2d4e736dc895f31fbd6b520e514f10cc08e0 [diff] |
qemu-nbd: Look up flag names in array The existing code to convert flag bits into strings looks a bit strange now, and if we ever add more flags, it will look even stranger. Prevent that from happening by making it look up the flag names in an array. Signed-off-by: Max Reitz <mreitz@redhat.com> Message-Id: <20190405191635.25740-1-mreitz@redhat.com> Signed-off-by: Eric Blake <eblake@redhat.com>