Skip to content

Commit

Permalink
small formatting fix for guard in sml logger (#286)
Browse files Browse the repository at this point in the history
small formatting fix for sml logger
  • Loading branch information
magni-mar authored Nov 23, 2023
1 parent aaef96d commit c62da73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/dbus_util/inc/public/tfc/dbus/sml_interface.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ auto dump_transition([[maybe_unused]] source_state_t const& src,

if (!is_entry && !is_exit) {
std::string color{ get_color<type_t, source_state_t, destination_state_t>(has_event, last_event) };
std::string guard{ has_guard ? get_guard_name<type_t>() : "" };
std::string guard{ has_guard ? fmt::format("[{}]", get_guard_name<typename type_t::guard>()) : "" };
std::string color_attr{ color.empty() ? "" : fmt::format(", color=\"{}\"", color) };

std::string event_label{};
Expand Down

0 comments on commit c62da73

Please sign in to comment.