Mercurial > hg > orthanc-databases
diff Framework/Plugins/OrthancCppDatabasePlugin.h @ 24:17f849b2af34
sharing plugin initialization code
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 12 Jul 2018 12:17:39 +0200 |
parents | 9e419261f1c9 |
children | 714c5d2bee76 |
line wrap: on
line diff
--- a/Framework/Plugins/OrthancCppDatabasePlugin.h Thu Jul 12 10:44:17 2018 +0200 +++ b/Framework/Plugins/OrthancCppDatabasePlugin.h Thu Jul 12 12:17:39 2018 +0200 @@ -1504,8 +1504,16 @@ if (performanceWarning) { - OrthancPluginLogWarning(context, "Performance warning: The database index plugin was compiled " - "against an old version of the Orthanc SDK, consider upgrading"); + char info[1024]; + 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.4.0 of the Orthanc SDK", + ORTHANC_PLUGINS_MINIMAL_MAJOR_NUMBER, + ORTHANC_PLUGINS_MINIMAL_MINOR_NUMBER, + ORTHANC_PLUGINS_MINIMAL_REVISION_NUMBER); + + OrthancPluginLogWarning(context, info); } OrthancPluginDatabaseContext* database =