[glass, wpiutil] Add missing format args (#3626)

These were caught by compile-time format string parsing in C++20.
This commit is contained in:
Tyler Veness
2021-10-11 22:54:20 -07:00
committed by GitHub
parent 4e3fd7d420
commit fa41b106ab
2 changed files with 2 additions and 2 deletions

View File

@@ -17,7 +17,7 @@ NTSpeedControllerModel::NTSpeedControllerModel(NT_Inst instance,
: m_nt(instance),
m_value(m_nt.GetEntry(fmt::format("{}/Value", path))),
m_name(m_nt.GetEntry(fmt::format("{}/.name", path))),
m_controllable(m_nt.GetEntry(fmt::format("{}/.controllable"))),
m_controllable(m_nt.GetEntry(fmt::format("{}/.controllable", path))),
m_valueData(fmt::format("NT_SpdCtrl:{}", path)),
m_nameValue(wpi::rsplit(path, '/').second) {
m_nt.AddListener(m_value);

View File

@@ -88,7 +88,7 @@ void wpi::report_fatal_error(std::string_view Reason, bool GenCrashDiag) {
if (handler) {
handler(handlerData, std::string{Reason}, GenCrashDiag);
} else {
fmt::print(stderr, "LLVM ERROR: {}\n");
fmt::print(stderr, "LLVM ERROR: {}\n", Reason);
}
exit(1);