aboutsummaryrefslogtreecommitdiff
path: root/src/profiling/RequestCounterDirectoryCommandHandler.cpp
diff options
context:
space:
mode:
authorJan Eilers <jan.eilers@arm.com>2020-09-09 19:11:16 +0100
committerTeresaARM <teresa.charlinreyes@arm.com>2020-09-30 11:55:41 +0000
commit156113cee2b869810092b42579c31c3b1fd910c5 (patch)
treeb461c42f2678b786b846da917c456bd085aac4c9 /src/profiling/RequestCounterDirectoryCommandHandler.cpp
parent3a613cc9103484249ffcd7c63a7ae57783b1ea18 (diff)
downloadarmnn-156113cee2b869810092b42579c31c3b1fd910c5.tar.gz
IVGCVSW-5295 Remove boost::format from armnn profiling
* Replace all instances of boost::format with fmt::format from armnn/src/profiling Signed-off-by: Jan Eilers <jan.eilers@arm.com> Change-Id: I4722bdde52c740bc9bdce969128074a34a3ee75e
Diffstat (limited to 'src/profiling/RequestCounterDirectoryCommandHandler.cpp')
-rw-r--r--src/profiling/RequestCounterDirectoryCommandHandler.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/profiling/RequestCounterDirectoryCommandHandler.cpp b/src/profiling/RequestCounterDirectoryCommandHandler.cpp
index 8f78ae63f0..f86470b77d 100644
--- a/src/profiling/RequestCounterDirectoryCommandHandler.cpp
+++ b/src/profiling/RequestCounterDirectoryCommandHandler.cpp
@@ -5,7 +5,7 @@
#include "RequestCounterDirectoryCommandHandler.hpp"
-#include <boost/format.hpp>
+#include <fmt/format.h>
namespace armnn
{
@@ -21,17 +21,17 @@ void RequestCounterDirectoryCommandHandler::operator()(const arm::pipe::Packet&
case ProfilingState::Uninitialised:
case ProfilingState::NotConnected:
case ProfilingState::WaitingForAck:
- throw RuntimeException(boost::str(boost::format("Request Counter Directory Comand Handler invoked while in an "
- "wrong state: %1%")
- % GetProfilingStateName(currentState)));
+ throw RuntimeException(fmt::format("Request Counter Directory Comand Handler invoked while in an "
+ "wrong state: {}",
+ GetProfilingStateName(currentState)));
case ProfilingState::Active:
// Process the packet
if (!(packet.GetPacketFamily() == 0u && packet.GetPacketId() == 3u))
{
- throw armnn::InvalidArgumentException(boost::str(boost::format("Expected Packet family = 0, id = 3 but "
- "received family = %1%, id = %2%")
- % packet.GetPacketFamily()
- % packet.GetPacketId()));
+ throw armnn::InvalidArgumentException(fmt::format("Expected Packet family = 0, id = 3 but "
+ "received family = {}, id = {}",
+ packet.GetPacketFamily(),
+ packet.GetPacketId()));
}
// Send all the packet required for the handshake with the external profiling service
@@ -40,8 +40,8 @@ void RequestCounterDirectoryCommandHandler::operator()(const arm::pipe::Packet&
break;
default:
- throw RuntimeException(boost::str(boost::format("Unknown profiling service state: %1%")
- % static_cast<int>(currentState)));
+ throw RuntimeException(fmt::format("Unknown profiling service state: {}",
+ static_cast<int>(currentState)));
}
}