Re: [PATCH] ESX: Add "Byte" datatype

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

 



2012/8/1 Ata E Husain Bohra <ata.husain@xxxxxxxxxxx>:
> Append "Byte" to set of predefined object data types.
>
> Signed-off-by: Ata E Husain Bohra <ata.husain@xxxxxxxxxxx>
> ---
>  src/esx/esx_vi_generator.py |    1 +
>  src/esx/esx_vi_types.c      |   57 +++++++++++++++++++++++++++++++++++++++++++
>  src/esx/esx_vi_types.h      |   28 +++++++++++++++++++++
>  3 files changed, 86 insertions(+)

> +/* esxVI_Byte_Serialize */
> +ESX_VI__TEMPLATE__SERIALIZE(Byte,
> +{
> +    virBufferAsprintf(output, "%c", (int8_t)item->value);
> +})

Why did you used %c here, this will print an ASCII character instead
of a number. %d should be used here.

-- 
Matthias Bolte
http://photron.blogspot.com

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]