fix(menu): Wrong printf token in error message (#2264)

'level' is a string, not an integer
This commit is contained in:
Patrick Ziegler 2020-12-03 15:12:59 +01:00 committed by GitHub
parent 62638a5833
commit c198859cd5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -140,7 +140,7 @@ namespace modules {
m_log.info("%s: Opening menu level '%i'", name(), static_cast<int>(m_level));
if (static_cast<size_t>(m_level) >= m_levels.size()) {
m_log.warn("%s: Cannot open unexisting menu level '%i'", name(), level);
m_log.warn("%s: Cannot open unexisting menu level '%s'", name(), level);
m_level = -1;
}
} else if (action == EVENT_CLOSE) {