From 1d78426a2b172f0b0ba2f04d1f5c51ad75c82ef5 Mon Sep 17 00:00:00 2001 From: Rico Tzschichholz Date: Mon, 26 Oct 2020 16:10:37 +0100 Subject: vala: Make use of new printf-like API of Report.*() --- vala/valaarraycreationexpression.vala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'vala/valaarraycreationexpression.vala') diff --git a/vala/valaarraycreationexpression.vala b/vala/valaarraycreationexpression.vala index 8af8fa8fe..fdc2eef8d 100644 --- a/vala/valaarraycreationexpression.vala +++ b/vala/valaarraycreationexpression.vala @@ -216,7 +216,7 @@ public class Vala.ArrayCreationExpression : Expression { } if (subsize >= 0 && subsize != size) { il.error = true; - Report.error (il.source_reference, "Expected initializer list of size %d, got size %d".printf (subsize, size)); + Report.error (il.source_reference, "Expected initializer list of size %d, got size %d", subsize, size); return -1; } else { subsize = size; @@ -280,7 +280,7 @@ public class Vala.ArrayCreationExpression : Expression { error = true; var actual_type = new ArrayType (element_type, calc_sizes.size, source_reference); ((ArrayType) actual_type).length_type = length_type; - Report.error (initlist.source_reference, "Expected initializer for `%s' but got `%s'".printf (target_type.to_string (), actual_type.to_string ())); + Report.error (initlist.source_reference, "Expected initializer for `%s' but got `%s'", target_type.to_string (), actual_type.to_string ()); } } -- cgit v1.2.1