]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
qemuProcessReportLogError: Don't mark "%s: %s" as translatable
authorPeter Krempa <pkrempa@redhat.com>
Thu, 25 Feb 2021 16:52:47 +0000 (17:52 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 5 Mar 2021 14:01:29 +0000 (15:01 +0100)
The function is constructing an error message from a prefix and the
contents of the qemu log file. Marking just two string modifiers as
translatable is pointless and will certainly confuse translators.

Remove the marking and add a comment which bypasses the
sc_libvirt_unmarked_diagnostics check.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_process.c

index 20f920513d9035411529e4a9d845cb57cbc2e10f..c53dfe25eda57f1e6bb7436958208ed7987f4d71 100644 (file)
@@ -2149,7 +2149,8 @@ qemuProcessReportLogError(qemuDomainLogContextPtr logCtxt,
     if (virStringIsEmpty(logmsg))
         virReportError(VIR_ERR_INTERNAL_ERROR, "%s", msgprefix);
     else
-        virReportError(VIR_ERR_INTERNAL_ERROR, _("%s: %s"), msgprefix, logmsg);
+        virReportError(VIR_ERR_INTERNAL_ERROR, "%s: %s", /* _( silence sc_libvirt_unmarked_diagnostics */
+                       msgprefix, logmsg);
 
     return 0;
 }