Bugfix: Profiling use of substr() incorrectly parses semantic versioning
authorFrancis Murtagh <francis.murtagh@arm.com>
Fri, 22 May 2020 11:49:25 +0000 (12:49 +0100)
committerJan Eilers <jan.eilers@arm.com>
Fri, 22 May 2020 16:14:11 +0000 (16:14 +0000)
commitd36c5288f1a87bcd4a100be413132d61305cb545
treeff45e6c4ceaf9d97ed6c5c6398e19fd290f74af4
parent753560b55dbf6656389b95efc8d4df07ac43cc9a
Bugfix: Profiling use of substr() incorrectly parses semantic versioning

 * With semantic versioning ARMNN_VERSION is changed from 20200500 to 21.0.0
   causing this function to return "Armnn .0..0" instead of "Armnn 20.1"
 * Remove the use of substrings and instead use the Major/Minor macros to
   give the expected output format: "Armnn 21.0" compared to last release's
   "Armnn 20.02"

Signed-off-by: Francis Murtagh <francis.murtagh@arm.com>
Change-Id: Id255ff154f59e922434f72a68563ccc6126e187a
src/profiling/ProfilingUtils.cpp