Skip to content

Commit f5ddd98

Browse files
committed
Slightly refactored debug output for diagnostics
1 parent a36ba85 commit f5ddd98

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

ArduinoDiagnosticConsumer.cpp

+6-5
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,11 @@ void ArduinoDiagnosticConsumer::HandleDiagnostic(DiagnosticsEngine::Level level,
6666
return;
6767
}
6868

69-
if (debugOutput) {
70-
SmallString<100> outStr;
71-
info.FormatDiagnostic(outStr);
72-
outs() << "(" << id << ") " << outStr << "\n";
73-
}
69+
}
70+
71+
if (debugOutput) {
72+
SmallString<100> outStr;
73+
info.FormatDiagnostic(outStr);
74+
outs() << "(" << info.getID() << ") " << outStr << "\n";
7475
}
7576
}

0 commit comments

Comments
 (0)