summaryrefslogtreecommitdiff
path: root/codegen
diff options
context:
space:
mode:
authorRico Tzschichholz <ricotz@ubuntu.com>2022-11-20 10:35:36 +0100
committerRico Tzschichholz <ricotz@ubuntu.com>2022-11-20 10:43:57 +0100
commita16275e1353a782d7f16c1abdedeb17d785ddaa9 (patch)
tree5de8fb3508160e5f814d94f0439e4a92399addf3 /codegen
parentfa09ca11b9467614bdca514acbbbe3baddfd7dfa (diff)
downloadvala-a16275e1353a782d7f16c1abdedeb17d785ddaa9.tar.gz
Actually use printf-like way of Report.*()
Diffstat (limited to 'codegen')
-rw-r--r--codegen/valaccodebasemodule.vala2
-rw-r--r--codegen/valagirwriter.vala2
2 files changed, 2 insertions, 2 deletions
diff --git a/codegen/valaccodebasemodule.vala b/codegen/valaccodebasemodule.vala
index ff0ee3f94..c2eefe02c 100644
--- a/codegen/valaccodebasemodule.vala
+++ b/codegen/valaccodebasemodule.vala
@@ -380,7 +380,7 @@ public abstract class Vala.CCodeBaseModule : CodeGenerator {
protected CCodeBaseModule () {
if (Vala.get_build_version () != Vala.BUILD_VERSION) {
- Report.error (null, "Integrity check failed (libvala %s doesn't match ccodegen %s)".printf (Vala.get_build_version (), Vala.BUILD_VERSION));
+ Report.error (null, "Integrity check failed (libvala %s doesn't match ccodegen %s)", Vala.get_build_version (), Vala.BUILD_VERSION);
}
predefined_marshal_set = new HashSet<string> (str_hash, str_equal);
diff --git a/codegen/valagirwriter.vala b/codegen/valagirwriter.vala
index 115d4ff98..f7c37d735 100644
--- a/codegen/valagirwriter.vala
+++ b/codegen/valagirwriter.vala
@@ -357,7 +357,7 @@ public class Vala.GIRWriter : CodeVisitor {
var old_gir_version = ns.get_attribute_string ("CCode", "gir_version");
if ((old_gir_namespace != null && old_gir_namespace != gir_namespace)
|| (old_gir_version != null && old_gir_version != gir_version)) {
- Report.warning (ns.source_reference, "Replace conflicting CCode.gir_* attributes for namespace `%s'".printf (ns.name));
+ Report.warning (ns.source_reference, "Replace conflicting CCode.gir_* attributes for namespace `%s'", ns.name);
}
ns.set_attribute_string ("CCode", "gir_namespace", gir_namespace);
ns.set_attribute_string ("CCode", "gir_version", gir_version);