Warn for type mismatch for gmx printf like functions 3/3
[alexxy/gromacs.git] / src / gromacs / gpu_utils / gpu_utils.cu
index 107d90fb31830b04679a55ffbad9718f7fd7b928..15e467308f66bac62766e66a7bdde3f68bbc7cd1 100644 (file)
@@ -117,8 +117,8 @@ static void checkCompiledTargetCompatibility(const gmx_device_info_t *devInfo)
                   "The %s binary does not include support for the CUDA architecture "
                   "of the selected GPU (device ID #%d, compute capability %d.%d). "
                   "By default, GROMACS supports all common architectures, so your GPU "
-                  "might be rare, or some architectures were disabled in the build. ",
-                  "Consult the install guide for how to use the GMX_CUDA_TARGET_SM and ",
+                  "might be rare, or some architectures were disabled in the build. "
+                  "Consult the install guide for how to use the GMX_CUDA_TARGET_SM and "
                   "GMX_CUDA_TARGET_COMPUTE CMake variables to add this architecture.",
                   gmx::getProgramContext().displayName(), devInfo->id,
                   devInfo->prop.major, devInfo->prop.minor);
@@ -757,8 +757,8 @@ void findGpus(gmx_gpu_info_t *gpu_info)
             // errors during sanity checks don't propagate.
             if ((stat = cudaGetLastError()) != cudaSuccess)
             {
-                gmx_warning(gmx::formatString("An error occurred while sanity checking device #%d; %s: %s",
-                                              devs[i].id, cudaGetErrorName(stat), cudaGetErrorString(stat)).c_str());
+                gmx_warning("An error occurred while sanity checking device #%d; %s: %s",
+                            devs[i].id, cudaGetErrorName(stat), cudaGetErrorString(stat));
             }
         }
     }