Mercurial > hg > orthanc-databases
diff Framework/Plugins/OrthancCppDatabasePlugin.h @ 129:534759b0cf14
use of macros to report performance warnings
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 08 Feb 2019 20:12:29 +0100 |
parents | 3424a54ca2ee |
children | 4cd7e45b671e |
line wrap: on
line diff
--- a/Framework/Plugins/OrthancCppDatabasePlugin.h Fri Feb 08 19:55:01 2019 +0100 +++ b/Framework/Plugins/OrthancCppDatabasePlugin.h Fri Feb 08 20:12:29 2019 +0100 @@ -1847,10 +1847,13 @@ sprintf(info, "Performance warning: The database index plugin was compiled " "against an old version of the Orthanc SDK (%d.%d.%d): " - "Consider upgrading to version 1.5.4 of the Orthanc SDK", + "Consider upgrading to version %d.%d.%d of the Orthanc SDK", ORTHANC_PLUGINS_MINIMAL_MAJOR_NUMBER, ORTHANC_PLUGINS_MINIMAL_MINOR_NUMBER, - ORTHANC_PLUGINS_MINIMAL_REVISION_NUMBER); + ORTHANC_PLUGINS_MINIMAL_REVISION_NUMBER, + ORTHANC_OPTIMAL_VERSION_MAJOR, + ORTHANC_OPTIMAL_VERSION_MINOR, + ORTHANC_OPTIMAL_VERSION_REVISION); OrthancPluginLogWarning(context, info); }