Commit ef584f17 authored by Tobias Hunger's avatar Tobias Hunger
Browse files

CPlusPlus: Use correct placeholders in printf

Change-Id: I42a41608c2f025a196e539b58c1992049f7eca35
Reviewed-by: default avatarNikolai Kosjar <>
parent 399a44b8
......@@ -449,7 +449,7 @@ void TranslationUnit::message(DiagnosticClient::Level level, unsigned index, con
if (DiagnosticClient *client = control()->diagnosticClient()) {
client->report(level, fileName, line, column, format, args);
} else {
fprintf(stderr, "%s:%d: ", fileName->chars(), line);
fprintf(stderr, "%s:%u: ", fileName->chars(), line);
const char *l = "error";
if (level == DiagnosticClient::Warning)
l = "warning";
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment