From 821be252d59614437092a72e837ba0b2028ff032 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sun, 29 Jul 2018 15:37:45 +0200 Subject: [PATCH] Display trace update summary. --- update/src/update.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/update/src/update.cpp b/update/src/update.cpp index 758ab71e..cf64c4fe 100644 --- a/update/src/update.cpp +++ b/update/src/update.cpp @@ -8,6 +8,7 @@ #include "../../server/TracyFileRead.hpp" #include "../../server/TracyFileWrite.hpp" +#include "../../server/TracyVersion.hpp" #include "../../server/TracyWorker.hpp" void Usage() @@ -49,6 +50,9 @@ int main( int argc, char** argv ) exit( 1 ); } worker.Write( *w ); + + const auto inVer = worker.GetTraceVersion(); + printf( "%s (%i.%i.%i) -> %s (%i.%i.%i)\n", input, inVer >> 16, ( inVer >> 8 ) & 0xFF, inVer & 0xFF, output, tracy::Version::Major, tracy::Version::Minor, tracy::Version::Patch ); } catch( const tracy::UnsupportedVersion& e ) {