if (virJSONValueGetType(obj) != VIR_JSON_TYPE_OBJECT) {
virReportError(VIR_ERR_INTERNAL_ERROR,
- _("Parsed JSON reply '%s' isn't an object"), line);
+ _("Parsed JSON reply '%1$s' isn't an object"), line);
return -1;
}
return 0;
} else {
virReportError(VIR_ERR_INTERNAL_ERROR,
- _("Unexpected JSON reply '%s'"), line);
+ _("Unexpected JSON reply '%1$s'"), line);
}
} else {
virReportError(VIR_ERR_INTERNAL_ERROR,
- _("Unknown JSON reply '%s'"), line);
+ _("Unknown JSON reply '%1$s'"), line);
}
return -1;
/* Only send the user the command name + friendly error */
if (!error)
virReportError(VIR_ERR_INTERNAL_ERROR,
- _("unable to execute QEMU command '%s'"),
+ _("unable to execute QEMU command '%1$s'"),
qemuMonitorJSONCommandName(cmd));
else
virReportError(VIR_ERR_INTERNAL_ERROR,
- _("unable to execute QEMU command '%s': %s"),
+ _("unable to execute QEMU command '%1$s': %2$s"),
qemuMonitorJSONCommandName(cmd),
qemuMonitorJSONStringifyError(error));
return -1;
virReportError(VIR_ERR_INTERNAL_ERROR,
- _("unable to execute QEMU command '%s'"),
+ _("unable to execute QEMU command '%1$s'"),
qemuMonitorJSONCommandName(cmd));
return -1;
}
VIR_DEBUG("Unexpected return type %d (expecting %d) for command %s: %s",
virJSONValueGetType(data), type, cmdstr, retstr);
virReportError(VIR_ERR_INTERNAL_ERROR,
- _("unexpected type returned by QEMU command '%s'"),
+ _("unexpected type returned by QEMU command '%1$s'"),
qemuMonitorJSONCommandName(cmd));
return NULL;
return qemuMonitorJSONGuestPanicExtractInfoS390(data);
virReportError(VIR_ERR_INTERNAL_ERROR,
- _("unknown panic info type '%s'"), NULLSTR(type));
+ _("unknown panic info type '%1$s'"), NULLSTR(type));
return NULL;
}
ret->status = qemuMonitorDumpStatusTypeFromString(statusstr);
if (ret->status < 0) {
virReportError(VIR_ERR_INTERNAL_ERROR,
- _("incomplete result, unknown status string '%s'"),
+ _("incomplete result, unknown status string '%1$s'"),
statusstr);
return -1;
}
if (qemuMonitorJSONHasError(reply, "CommandNotFound")) {
virReportError(VIR_ERR_OPERATION_UNSUPPORTED,
- _("Human monitor command is not available to run %s"),
+ _("Human monitor command is not available to run %1$s"),
cmd_str);
return -1;
}
case VIR_DOMAIN_VIDEO_TYPE_VGA:
if (qemuMonitorJSONGetObjectProperty(mon, path, "vgamem_mb", &prop) < 0) {
virReportError(VIR_ERR_INTERNAL_ERROR,
- _("QOM Object '%s' has no property 'vgamem_mb'"),
+ _("QOM Object '%1$s' has no property 'vgamem_mb'"),
path);
return -1;
}
case VIR_DOMAIN_VIDEO_TYPE_QXL:
if (qemuMonitorJSONGetObjectProperty(mon, path, "vram_size", &prop) < 0) {
virReportError(VIR_ERR_INTERNAL_ERROR,
- _("QOM Object '%s' has no property 'vram_size'"),
+ _("QOM Object '%1$s' has no property 'vram_size'"),
path);
return -1;
}
if (qemuMonitorJSONGetObjectProperty(mon, path, "ram_size", &prop) < 0) {
virReportError(VIR_ERR_INTERNAL_ERROR,
- _("QOM Object '%s' has no property 'ram_size'"),
+ _("QOM Object '%1$s' has no property 'ram_size'"),
path);
return -1;
}
video->ram = prop.val.ul / 1024;
if (qemuMonitorJSONGetObjectProperty(mon, path, "vgamem_mb", &prop) < 0) {
virReportError(VIR_ERR_INTERNAL_ERROR,
- _("QOM Object '%s' has no property 'vgamem_mb'"),
+ _("QOM Object '%1$s' has no property 'vgamem_mb'"),
path);
return -1;
}
case VIR_DOMAIN_VIDEO_TYPE_VMVGA:
if (qemuMonitorJSONGetObjectProperty(mon, path, "vgamem_mb", &prop) < 0) {
virReportError(VIR_ERR_INTERNAL_ERROR,
- _("QOM Object '%s' has no property 'vgamem_mb'"),
+ _("QOM Object '%1$s' has no property 'vgamem_mb'"),
path);
return -1;
}
if (qemuMonitorJSONGetObjectProperty(mon, path,
"vram64_size_mb", &prop) < 0) {
virReportError(VIR_ERR_INTERNAL_ERROR,
- _("QOM Object '%s' has no property 'vram64_size_mb'"),
+ _("QOM Object '%1$s' has no property 'vram64_size_mb'"),
path);
return -1;
}
if (g_hash_table_contains(table, entryname)) {
virReportError(VIR_ERR_INTERNAL_ERROR,
- _("Duplicate block info for '%s'"), entryname);
+ _("Duplicate block info for '%1$s'"), entryname);
return -1;
}
if (virJSONValueObjectGetBoolean(dev, "removable", &info.removable) < 0) {
virReportError(VIR_ERR_INTERNAL_ERROR,
- _("cannot read %s value"),
+ _("cannot read %1$s value"),
"removable");
return -1;
}
(*nstats)++; \
if (virJSONValueObjectGetNumberUlong(stats, NAME, &VAR) < 0) { \
virReportError(VIR_ERR_INTERNAL_ERROR, \
- _("cannot read %s statistic"), NAME); \
+ _("cannot read %1$s statistic"), NAME); \
return NULL; \
} \
}
stats->status = qemuMonitorMigrationStatusTypeFromString(statusstr);
if (stats->status < 0) {
virReportError(VIR_ERR_INTERNAL_ERROR,
- _("unexpected migration status in %s"), statusstr);
+ _("unexpected migration status in %1$s"), statusstr);
return -1;
}
if (!(element = virJSONValueArrayGet(table, i)) ||
!(tmp = virJSONValueGetString(element))) {
virReportError(VIR_ERR_INTERNAL_ERROR,
- _("Missing or invalid element %zu of 'unicast' "
- "list in query-rx-filter response"), i);
+ _("Missing or invalid element %1$zu of 'unicast' list in query-rx-filter response"),
+ i);
return -1;
}
if (virMacAddrParse(tmp, &fil->unicast.table[i]) < 0) {
virReportError(VIR_ERR_INTERNAL_ERROR,
- _("invalid mac address '%s' in 'unicast-table' "
- "array in query-rx-filter response"), tmp);
+ _("invalid mac address '%1$s' in 'unicast-table' array in query-rx-filter response"),
+ tmp);
return -1;
}
}
if (!(element = virJSONValueArrayGet(table, i)) ||
!(tmp = virJSONValueGetString(element))) {
virReportError(VIR_ERR_INTERNAL_ERROR,
- _("Missing or invalid element %zu of 'multicast' "
- "list in query-rx-filter response"), i);
+ _("Missing or invalid element %1$zu of 'multicast' list in query-rx-filter response"),
+ i);
return -1;
}
if (virMacAddrParse(tmp, &fil->multicast.table[i]) < 0) {
virReportError(VIR_ERR_INTERNAL_ERROR,
- _("invalid mac address '%s' in 'multicast-table' "
- "array in query-rx-filter response"), tmp);
+ _("invalid mac address '%1$s' in 'multicast-table' array in query-rx-filter response"),
+ tmp);
return -1;
}
}
if (!(element = virJSONValueArrayGet(table, i)) ||
virJSONValueGetNumberUint(element, &fil->vlan.table[i]) < 0) {
virReportError(VIR_ERR_INTERNAL_ERROR,
- _("Missing or invalid element %zu of 'vlan-table' "
- "array in query-rx-filter response"), i);
+ _("Missing or invalid element %1$zu of 'vlan-table' array in query-rx-filter response"),
+ i);
return -1;
}
}
if (virHashAddEntry(info, alias, entry) < 0) {
virReportError(VIR_ERR_OPERATION_FAILED,
- _("failed to add chardev '%s' info"), alias);
+ _("failed to add chardev '%1$s' info"), alias);
goto cleanup;
}
if (keycodes[i] > 0xffff) {
virReportError(VIR_ERR_OPERATION_FAILED,
- _("keycode %zu is invalid: 0x%X"), i, keycodes[i]);
+ _("keycode %1$zu is invalid: 0x%2$X"), i, keycodes[i]);
return -1;
}
if ((error = virJSONValueObjectGet(reply, "error")) &&
(qemuMonitorJSONErrorIsClass(error, "DeviceNotActive"))) {
virReportError(VIR_ERR_OPERATION_INVALID,
- _("No active block job '%s'"), jobname);
+ _("No active block job '%1$s'"), jobname);
return -1;
}
FIELD, \
&reply->STORE) < 0) { \
virReportError(VIR_ERR_OPERATION_UNSUPPORTED, \
- _("block_io_throttle field '%s' missing " \
- "in qemu's output"), \
+ _("block_io_throttle field '%1$s' missing in qemu's output"), \
#STORE); \
return -1; \
}
if (!found) {
virReportError(VIR_ERR_INTERNAL_ERROR,
- _("cannot find throttling info for device '%s'"),
+ _("cannot find throttling info for device '%1$s'"),
drivealias ? drivealias : qdevid);
return -1;
}
{
if (!(*cpu_model = virJSONValueObjectGetObject(data, "model"))) {
virReportError(VIR_ERR_INTERNAL_ERROR,
- _("%s reply data was missing 'model'"), cmd_name);
+ _("%1$s reply data was missing 'model'"), cmd_name);
return -1;
}
if (!(*cpu_name = virJSONValueObjectGetString(*cpu_model, "name"))) {
virReportError(VIR_ERR_INTERNAL_ERROR,
- _("%s reply data was missing 'name'"), cmd_name);
+ _("%1$s reply data was missing 'name'"), cmd_name);
return -1;
}
if (!(*cpu_props = virJSONValueObjectGetObject(*cpu_model, "props")) &&
fail_no_props) {
virReportError(VIR_ERR_INTERNAL_ERROR,
- _("%s reply data was missing 'props'"), cmd_name);
+ _("%1$s reply data was missing 'props'"), cmd_name);
return -1;
}
break;
case QEMU_MONITOR_OBJECT_PROPERTY_LAST:
virReportError(VIR_ERR_INTERNAL_ERROR,
- _("qom-get invalid object property type %d"),
+ _("qom-get invalid object property type %1$d"),
prop->type);
return -1;
break;
break;
case QEMU_MONITOR_OBJECT_PROPERTY_LAST:
virReportError(VIR_ERR_INTERNAL_ERROR,
- _("qom-set invalid object property type %d"),
+ _("qom-set invalid object property type %1$d"),
prop->type);
return -1;
case VIR_DOMAIN_CHR_TYPE_STDIO:
case VIR_DOMAIN_CHR_TYPE_NMDM:
virReportError(VIR_ERR_OPERATION_FAILED,
- _("Hotplug unsupported for char device type '%s'"),
+ _("Hotplug unsupported for char device type '%1$s'"),
virDomainChrTypeToString(chr->type));
return NULL;
cpuid->edx = features;
} else {
virReportError(VIR_ERR_INTERNAL_ERROR,
- _("unknown CPU register '%s'"), reg);
+ _("unknown CPU register '%1$s'"), reg);
return -1;
}
if (virStrToLong_ui(tmp + strlen("iothread"),
NULL, 10, &info->iothread_id) < 0) {
virReportError(VIR_ERR_INTERNAL_ERROR,
- _("failed to find iothread id for '%s'"),
+ _("failed to find iothread id for '%1$s'"),
tmp);
goto cleanup;
}
if ((status = qemuMonitorDirtyRateStatusTypeFromString(statusstr)) < 0) {
virReportError(VIR_ERR_INTERNAL_ERROR,
- _("Unknown dirty rate status: %s"), statusstr);
+ _("Unknown dirty rate status: %1$s"), statusstr);
return -1;
}
info->status = status;
if ((modestr = virJSONValueObjectGetString(data, "mode"))) {
if ((mode = qemuMonitorDirtyRateCalcModeTypeFromString(modestr)) < 0) {
virReportError(VIR_ERR_INTERNAL_ERROR,
- _("Unknown dirty page rate calculation mode: %s"), modestr);
+ _("Unknown dirty page rate calculation mode: %1$s"), modestr);
return -1;
}
info->mode = mode;