[libvirt] [PATCH v2 1/2] docs: Format bit shift and hex notation for bitwise flag enums

Ján Tomko jtomko at redhat.com
Wed Jan 30 13:40:47 UTC 2019


On Tue, Jan 29, 2019 at 04:32:35PM +0100, Peter Krempa wrote:
>Big number itself does not make much sense in some cases. Format the
>bitshift format as well.
>
>Changes our web page docs from:
>
>VIR_MIGRATE_POSTCOPY = 32768 : Setting the VIR_MIGRATE_POSTCOPY...
>VIR_MIGRATE_TLS      = 65536 : Setting the VIR_MIGRATE_TLS flag...
>
>to:
>
>VIR_MIGRATE_POSTCOPY = 32768 (0x8000; 1 << 15)  : Setting the VIR_MIGRATE_POSTCOPY...
>VIR_MIGRATE_TLS      = 65536 (0x10000; 1 << 16) : Setting the VIR_MIGRATE_TLS flag...
>

Neat!

Formatting this also in roman numerals might be useful to some.

Jano

>Signed-off-by: Peter Krempa <pkrempa at redhat.com>
>---
> docs/apibuild.py | 10 ++++++++++
> docs/libvirt.css |  4 ++++
> docs/newapi.xsl  | 22 ++++++++++++++++++++--
> 3 files changed, 34 insertions(+), 2 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20190130/de8e7dcd/attachment-0001.sig>


More information about the libvir-list mailing list