diff --git a/dumux/freeflow/stokes/stokesvolumevariables.hh b/dumux/freeflow/stokes/stokesvolumevariables.hh
index 3a5e609a7d56e957c0d3ff9c827376f1869bc168..60db320d030add0503e2776eae46a72eba0a4009 100644
--- a/dumux/freeflow/stokes/stokesvolumevariables.hh
+++ b/dumux/freeflow/stokes/stokesvolumevariables.hh
@@ -161,7 +161,7 @@ public:
      * \brief Returns the dynamic viscosity \f$ \mathrm{[Pa s]} \f$ of the fluid in
      *        the sub-control volume.
      */
-    DUNE_DEPRECATED_MSG("function StokesFluxVariables::viscosity() is deprecated, use StokesFluxVariables::dynamicViscosity() instead.")
+    DUNE_DEPRECATED_MSG("function StokesVolumeVariables::viscosity() is deprecated, use StokesFluxVariables::dynamicViscosity() instead.")
     Scalar viscosity() const
     { return dynamicViscosity(); }