aboutsummaryrefslogtreecommitdiff
path: root/lib/libUPnP
diff options
context:
space:
mode:
authorAlasdair Campbell <alcoheca@gmail.com>2012-06-06 17:04:31 +0100
committermontellese <montellese@xbmc.org>2014-05-17 09:53:07 +0200
commit60f546b6f4a54a399a0cd0cece84486b7018c477 (patch)
tree8004e7de9e55333fed01a01bf6f1a37239e1b28a /lib/libUPnP
parent17f16bff49f6353b1afc98a8f14cfcedb4673ae8 (diff)
platinum: log allowed values with state variable errors
Diffstat (limited to 'lib/libUPnP')
-rw-r--r--lib/libUPnP/Platinum/Source/Core/PltStateVariable.cpp14
1 files changed, 9 insertions, 5 deletions
diff --git a/lib/libUPnP/Platinum/Source/Core/PltStateVariable.cpp b/lib/libUPnP/Platinum/Source/Core/PltStateVariable.cpp
index a772bbf930..c3eb7cc2f0 100644
--- a/lib/libUPnP/Platinum/Source/Core/PltStateVariable.cpp
+++ b/lib/libUPnP/Platinum/Source/Core/PltStateVariable.cpp
@@ -198,12 +198,16 @@ PLT_StateVariable::ValidateValue(const char* value)
NPT_List<NPT_String>::Iterator val = values.GetFirstItem();
while (val) {
val->Trim(" ");
- if (!m_AllowedValues.Find(NPT_StringFinder(*val))) {
- NPT_LOG_WARNING_2("Invalid value of %s for state variable %s",
- (const char*)*val,
- (const char*)m_Name);
+ if (!m_AllowedValues.Find(NPT_StringFinder(*val))) {
+ NPT_LOG_WARNING_2("Invalid value of %s for state variable %s",
+ (const char*)*val,
+ (const char*)m_Name);
+ for (unsigned long i=0; i < m_AllowedValues.GetItemCount(); i++) {
+ NPT_String *val = *m_AllowedValues.GetItem(i);
+ NPT_LOG_WARNING_1("Allowed: %s", (const char*)*val);
+ }
return NPT_ERROR_INVALID_PARAMETERS;
- }
+ }
++val;
}
}