summaryrefslogtreecommitdiff
path: root/compiler
diff options
context:
space:
mode:
authorRico Tzschichholz <ricotz@ubuntu.com>2020-10-26 16:10:37 +0100
committerRico Tzschichholz <ricotz@ubuntu.com>2020-10-26 16:10:37 +0100
commit1d78426a2b172f0b0ba2f04d1f5c51ad75c82ef5 (patch)
tree7f82f8eed0a1590ecbb830d575ee0f092a2e433e /compiler
parent545121d1322d3f73880b3f14d86d3d7bd976e664 (diff)
downloadvala-1d78426a2b172f0b0ba2f04d1f5c51ad75c82ef5.tar.gz
vala: Make use of new printf-like API of Report.*()
Diffstat (limited to 'compiler')
-rw-r--r--compiler/valacompiler.vala4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/valacompiler.vala b/compiler/valacompiler.vala
index 4cf66f3c5..e5a6a21d1 100644
--- a/compiler/valacompiler.vala
+++ b/compiler/valacompiler.vala
@@ -437,13 +437,13 @@ class Vala.Compiler {
int last_hyphen = gir_base.last_index_of_char ('-');
if (last_hyphen == -1 || !gir_base.has_suffix (".gir")) {
- Report.error (null, "GIR file name `%s' is not well-formed, expected NAME-VERSION.gir".printf (gir));
+ Report.error (null, "GIR file name `%s' is not well-formed, expected NAME-VERSION.gir", gir);
} else {
string gir_namespace = gir_base.substring (0, last_hyphen);
string gir_version = gir_base.substring (last_hyphen + 1, gir_len - last_hyphen - 5);
gir_version.canon ("0123456789.", '?');
if (gir_namespace == "" || gir_version == "" || !gir_version[0].isdigit () || gir_version.contains ("?")) {
- Report.error (null, "GIR file name `%s' is not well-formed, expected NAME-VERSION.gir".printf (gir));
+ Report.error (null, "GIR file name `%s' is not well-formed, expected NAME-VERSION.gir", gir);
} else {
var gir_writer = new GIRWriter ();