diff options
author | Jan Eilers <jan.eilers@arm.com> | 2020-09-09 19:11:16 +0100 |
---|---|---|
committer | TeresaARM <teresa.charlinreyes@arm.com> | 2020-09-30 11:55:41 +0000 |
commit | 156113cee2b869810092b42579c31c3b1fd910c5 (patch) | |
tree | b461c42f2678b786b846da917c456bd085aac4c9 /src/profiling/ProfilingService.cpp | |
parent | 3a613cc9103484249ffcd7c63a7ae57783b1ea18 (diff) | |
download | armnn-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/ProfilingService.cpp')
-rw-r--r-- | src/profiling/ProfilingService.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/profiling/ProfilingService.cpp b/src/profiling/ProfilingService.cpp index 3521fc0884..6fe52f845e 100644 --- a/src/profiling/ProfilingService.cpp +++ b/src/profiling/ProfilingService.cpp @@ -11,7 +11,7 @@ #include <common/include/SocketConnectionException.hpp> -#include <boost/format.hpp> +#include <fmt/format.h> namespace armnn { @@ -183,8 +183,8 @@ void ProfilingService::Update() 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))); } } @@ -203,8 +203,8 @@ void ProfilingService::Disconnect() 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))); } } @@ -486,7 +486,7 @@ inline void ProfilingService::CheckCounterUid(uint16_t counterUid) const { if (!IsCounterRegistered(counterUid)) { - throw InvalidArgumentException(boost::str(boost::format("Counter UID %1% is not registered") % counterUid)); + throw InvalidArgumentException(fmt::format("Counter UID {} is not registered", counterUid)); } } |