diff options
Diffstat (limited to 'lib/libUPnP')
-rw-r--r-- | lib/libUPnP/Platinum/Source/Core/PltStateVariable.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/libUPnP/Platinum/Source/Core/PltStateVariable.cpp b/lib/libUPnP/Platinum/Source/Core/PltStateVariable.cpp index 47aeb5a453..7b465394f1 100644 --- a/lib/libUPnP/Platinum/Source/Core/PltStateVariable.cpp +++ b/lib/libUPnP/Platinum/Source/Core/PltStateVariable.cpp @@ -210,6 +210,7 @@ PLT_StateVariable::ValidateValue(const char* value) while (val) { val->Trim(" "); if (!m_AllowedValues.Find(NPT_StringFinder(*val))) { +#if defined(NPT_CONFIG_ENABLE_LOGGING) NPT_LOG_WARNING_2("Invalid value of %s for state variable %s", (const char*)*val, (const char*)m_Name); @@ -217,6 +218,7 @@ PLT_StateVariable::ValidateValue(const char* value) NPT_String *val = *m_AllowedValues.GetItem(i); NPT_LOG_WARNING_1("Allowed: %s", (const char*)*val); } +#endif return NPT_ERROR_INVALID_PARAMETERS; } ++val; |