[Libvirt-cim] [PATCH] libxutil: Fix memory device dumpCore field parsing
John Ferlan
jferlan at redhat.com
Wed Jun 11 18:53:58 UTC 2014
On 06/04/2014 10:06 PM, Xu Wang wrote:
> Signed-off-by: Xu Wang <gesaint at linux.vnet.ibm.com>
> ---
> libxkutil/device_parsing.c | 4 ++--
> 1 files changed, 2 insertions(+), 2 deletions(-)
>
Do you mind if I merge/squash this together with your other dumpCore patch?
John
> diff --git a/libxkutil/device_parsing.c b/libxkutil/device_parsing.c
> index d654a6a..815feea 100644
> --- a/libxkutil/device_parsing.c
> +++ b/libxkutil/device_parsing.c
> @@ -850,9 +850,9 @@ static int parse_mem_device(xmlNode *node, struct virt_device **vdevs)
> else if (XSTREQ(node->name, "memory")) {
> sscanf(content, "%" PRIu64, &mdev->maxsize);
> tmpval = get_attr_value(node, "dumpCore");
> - if (tmpval && XSTREQ(tmpval, "on")) {
> + if (tmpval && STREQC(tmpval, "on")) {
> mdev->dumpCore = MEM_DUMP_CORE_ON;
> - } else if (tmpval && XSTREQ(content, "off")) {
> + } else if (tmpval && STREQC(tmpval, "off")) {
> mdev->dumpCore = MEM_DUMP_CORE_OFF;
> } else {
> mdev->dumpCore = MEM_DUMP_CORE_NOT_SET;
>
More information about the Libvirt-cim
mailing list