mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
util: Rename virBitmapDataToString to virBitmapDataFormat
It is literally only a wrapper around virBitmapNewData() and virBitmapFormat(), only the naming was wrong since it was introduced. And because we have virBitmap*String functions where the meaning of the 'String' is constant, this might confuse someone. Signed-off-by: Martin Kletzander <mkletzan@redhat.com> Reviewed-by: John Ferlan <jferlan@redhat.com>
This commit is contained in:
@@ -6527,7 +6527,7 @@ virshVcpuinfoPrintAffinity(vshControl *ctl,
|
||||
|
||||
vshPrint(ctl, "%-15s ", _("CPU Affinity:"));
|
||||
if (pretty) {
|
||||
if (!(str = virBitmapDataToString(cpumap, VIR_CPU_MAPLEN(maxcpu))))
|
||||
if (!(str = virBitmapDataFormat(cpumap, VIR_CPU_MAPLEN(maxcpu))))
|
||||
goto cleanup;
|
||||
vshPrint(ctl, _("%s (out of %d)"), str, maxcpu);
|
||||
} else {
|
||||
@@ -6781,7 +6781,7 @@ virshPrintPinInfo(vshControl *ctl,
|
||||
{
|
||||
char *str = NULL;
|
||||
|
||||
if (!(str = virBitmapDataToString(cpumap, cpumaplen)))
|
||||
if (!(str = virBitmapDataFormat(cpumap, cpumaplen)))
|
||||
return false;
|
||||
|
||||
vshPrint(ctl, "%s", str);
|
||||
|
||||
@@ -717,7 +717,7 @@ cmdNodeCpuMap(vshControl *ctl, const vshCmd *cmd ATTRIBUTE_UNUSED)
|
||||
|
||||
vshPrint(ctl, "%-15s ", _("CPU map:"));
|
||||
if (pretty) {
|
||||
char *str = virBitmapDataToString(cpumap, VIR_CPU_MAPLEN(cpunum));
|
||||
char *str = virBitmapDataFormat(cpumap, VIR_CPU_MAPLEN(cpunum));
|
||||
|
||||
if (!str)
|
||||
goto cleanup;
|
||||
|
||||
Reference in New Issue
Block a user