[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

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



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 redhat com>
---
docs/apibuild.py | 10 ++++++++++
docs/libvirt.css |  4 ++++
docs/newapi.xsl  | 22 ++++++++++++++++++++--
3 files changed, 34 insertions(+), 2 deletions(-)

Attachment: signature.asc
Description: PGP signature


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]