|
|
404507 |
From c78834f22a28c110183b885e024b40398a11a267 Mon Sep 17 00:00:00 2001
|
|
|
404507 |
Message-Id: <c78834f22a28c110183b885e024b40398a11a267@dist-git>
|
|
|
404507 |
From: Martin Kletzander <mkletzan@redhat.com>
|
|
|
404507 |
Date: Wed, 31 Jan 2018 16:32:11 +0100
|
|
|
404507 |
Subject: [PATCH] util: Rename virBitmapString to virBitmapToString
|
|
|
404507 |
|
|
|
404507 |
https://bugzilla.redhat.com/show_bug.cgi?id=1289368
|
|
|
404507 |
|
|
|
404507 |
This follows the virBitmapToData() function and, similarly to
|
|
|
404507 |
virBitmapNewData(), we'll be able to have virBitmapNewString() later
|
|
|
404507 |
on without name confusion.
|
|
|
404507 |
|
|
|
404507 |
Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
|
|
|
404507 |
Reviewed-by: John Ferlan <jferlan@redhat.com>
|
|
|
404507 |
(cherry picked from commit 68d7cc649c652623e11e36286c9888495543dac4)
|
|
|
404507 |
Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
|
|
|
404507 |
---
|
|
|
404507 |
src/libvirt_private.syms | 2 +-
|
|
|
404507 |
src/qemu/qemu_capabilities.c | 4 ++--
|
|
|
404507 |
src/util/virbitmap.c | 6 +++---
|
|
|
404507 |
src/util/virbitmap.h | 2 +-
|
|
|
404507 |
4 files changed, 7 insertions(+), 7 deletions(-)
|
|
|
404507 |
|
|
|
404507 |
diff --git a/src/libvirt_private.syms b/src/libvirt_private.syms
|
|
|
404507 |
index 5a87276a2e..d0f2c027fc 100644
|
|
|
404507 |
--- a/src/libvirt_private.syms
|
|
|
404507 |
+++ b/src/libvirt_private.syms
|
|
|
404507 |
@@ -1382,9 +1382,9 @@ virBitmapSetAll;
|
|
|
404507 |
virBitmapSetBit;
|
|
|
404507 |
virBitmapSetBitExpand;
|
|
|
404507 |
virBitmapSize;
|
|
|
404507 |
-virBitmapString;
|
|
|
404507 |
virBitmapToData;
|
|
|
404507 |
virBitmapToDataBuf;
|
|
|
404507 |
+virBitmapToString;
|
|
|
404507 |
|
|
|
404507 |
|
|
|
404507 |
# util/virbuffer.h
|
|
|
404507 |
diff --git a/src/qemu/qemu_capabilities.c b/src/qemu/qemu_capabilities.c
|
|
|
404507 |
index d6bd28d072..5bf188f427 100644
|
|
|
404507 |
--- a/src/qemu/qemu_capabilities.c
|
|
|
404507 |
+++ b/src/qemu/qemu_capabilities.c
|
|
|
404507 |
@@ -1525,7 +1525,7 @@ int virQEMUCapsParseHelpStr(const char *qemu,
|
|
|
404507 |
qemuCaps, check_yajl) < 0)
|
|
|
404507 |
goto cleanup;
|
|
|
404507 |
|
|
|
404507 |
- strflags = virBitmapString(qemuCaps->flags, true);
|
|
|
404507 |
+ strflags = virBitmapToString(qemuCaps->flags, true);
|
|
|
404507 |
VIR_DEBUG("Version %u.%u.%u, cooked version %u, flags %s",
|
|
|
404507 |
major, minor, micro, *version, NULLSTR(strflags));
|
|
|
404507 |
VIR_FREE(strflags);
|
|
|
404507 |
@@ -2407,7 +2407,7 @@ virQEMUCapsClear(virQEMUCapsPtr qemuCaps,
|
|
|
404507 |
|
|
|
404507 |
char *virQEMUCapsFlagsString(virQEMUCapsPtr qemuCaps)
|
|
|
404507 |
{
|
|
|
404507 |
- return virBitmapString(qemuCaps->flags, true);
|
|
|
404507 |
+ return virBitmapToString(qemuCaps->flags, true);
|
|
|
404507 |
}
|
|
|
404507 |
|
|
|
404507 |
|
|
|
404507 |
diff --git a/src/util/virbitmap.c b/src/util/virbitmap.c
|
|
|
404507 |
index f08384ff1c..e7d04e8c8b 100644
|
|
|
404507 |
--- a/src/util/virbitmap.c
|
|
|
404507 |
+++ b/src/util/virbitmap.c
|
|
|
404507 |
@@ -310,7 +310,7 @@ int virBitmapGetBit(virBitmapPtr bitmap, size_t b, bool *result)
|
|
|
404507 |
}
|
|
|
404507 |
|
|
|
404507 |
/**
|
|
|
404507 |
- * virBitmapString:
|
|
|
404507 |
+ * virBitmapToString:
|
|
|
404507 |
* @bitmap: Pointer to bitmap
|
|
|
404507 |
* @prefix: Whether to prepend "0x"
|
|
|
404507 |
*
|
|
|
404507 |
@@ -319,8 +319,8 @@ int virBitmapGetBit(virBitmapPtr bitmap, size_t b, bool *result)
|
|
|
404507 |
* Returns pointer to the string or NULL on error.
|
|
|
404507 |
*/
|
|
|
404507 |
char *
|
|
|
404507 |
-virBitmapString(virBitmapPtr bitmap,
|
|
|
404507 |
- bool prefix)
|
|
|
404507 |
+virBitmapToString(virBitmapPtr bitmap,
|
|
|
404507 |
+ bool prefix)
|
|
|
404507 |
{
|
|
|
404507 |
virBuffer buf = VIR_BUFFER_INITIALIZER;
|
|
|
404507 |
size_t sz;
|
|
|
404507 |
diff --git a/src/util/virbitmap.h b/src/util/virbitmap.h
|
|
|
404507 |
index dc8fb71a07..99eb779d71 100644
|
|
|
404507 |
--- a/src/util/virbitmap.h
|
|
|
404507 |
+++ b/src/util/virbitmap.h
|
|
|
404507 |
@@ -80,7 +80,7 @@ bool virBitmapIsBitSet(virBitmapPtr bitmap, size_t b)
|
|
|
404507 |
int virBitmapGetBit(virBitmapPtr bitmap, size_t b, bool *result)
|
|
|
404507 |
ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(3) ATTRIBUTE_RETURN_CHECK;
|
|
|
404507 |
|
|
|
404507 |
-char *virBitmapString(virBitmapPtr bitmap, bool prefix)
|
|
|
404507 |
+char *virBitmapToString(virBitmapPtr bitmap, bool prefix)
|
|
|
404507 |
ATTRIBUTE_NONNULL(1) ATTRIBUTE_RETURN_CHECK;
|
|
|
404507 |
|
|
|
404507 |
char *virBitmapFormat(virBitmapPtr bitmap);
|
|
|
404507 |
--
|
|
|
404507 |
2.16.1
|
|
|
404507 |
|