Skip to content

Commit

Permalink
[saiplayer] Fix log messages (sonic-net#686)
Browse files Browse the repository at this point in the history
Put correct messages for GCC
  • Loading branch information
kcudnik authored Oct 30, 2020
1 parent 0bf336a commit dc73a1d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions saiplayer/SaiPlayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ using namespace std::placeholders;
timer.inc(entries.size());

#define CALL_BULK_REMOVE_API_WITH_TIMER(entry) \
SWSS_LOG_INFO("executing BULK remove ", entry,", count = %zu ", entries.size()); \
SWSS_LOG_INFO("executing BULK remove " #entry ", count = %zu ", entries.size()); \
static PerformanceIntervalTimer timer("SaiPlayer::handle_bulk_entry::bulkRemove("#entry")"); \
timer.start(); \
status = m_sai->bulkRemove(object_count, entries.data(), \
Expand All @@ -52,7 +52,7 @@ using namespace std::placeholders;
timer.inc(entries.size());

#define CALL_BULK_SET_API_WITH_TIMER(entry) \
SWSS_LOG_INFO("executing BULK set ", entry,", count = %zu ", entries.size()); \
SWSS_LOG_INFO("executing BULK set " #entry ", count = %zu ", entries.size()); \
static PerformanceIntervalTimer timer("SaiPlayer::handle_bulk_entry::bulkSet("#entry")"); \
timer.start(); \
status = m_sai->bulkSet(object_count, entries.data(), \
Expand Down Expand Up @@ -1824,7 +1824,7 @@ void SaiPlayer::processBulk(

if (status != SAI_STATUS_SUCCESS)
{
SWSS_LOG_ERROR("handle bulk executed with failure, status = %s", sai_serialize_status(status));
SWSS_LOG_ERROR("handle bulk executed with failure, status = %s", sai_serialize_status(status).c_str());
}

// even if API will fail, we will need to compare all statuses for each entry
Expand Down

0 comments on commit dc73a1d

Please sign in to comment.