]> git.ozlabs.org Git - ccan/blobdiff - tools/ccanlint/compulsory_tests/objects_build.c
ccanlint: score_file_error() takes printf-format
[ccan] / tools / ccanlint / compulsory_tests / objects_build.c
index 13d34a14e041fb90b2fcbba7df020c06805aec31..32546e591732ba080ed439d89b34d53e7dfd86da 100644 (file)
@@ -41,12 +41,15 @@ static void check_objs_build(struct manifest *m,
                if (!compile_object(score, fullfile, ccan_dir, "", i->compiled,
                                    &output)) {
                        talloc_free(i->compiled);
-                       score->error = "Compiling object files";
-                       score_file_error(score, i, 0, output);
+                       score_file_error(score, i, 0,
+                                        "Compiling object files:\n%s",
+                                        output);
                        errors = true;
                } else if (!streq(output, "")) {
-                       score->error = "Compiling object files gave warnings";
-                       score_file_error(score, i, 0, output);
+                       score_file_error(score, i, 0,
+                                        "Compiling object files gave"
+                                        " warnings:\n%s",
+                                        output);
                        warnings = true;
                }
        }