- Timestamp:
- 05/19/18 15:45:12 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/frams/param/param.h
r745 r784 9 9 #include <stdint.h> 10 10 #include <frams/util/sstring.h> 11 #include <frams/util/sstringutils.h> 11 12 #include <frams/util/list.h> 12 13 #include <frams/util/statrick.h> … … 296 297 SString svaluetoset = SString::valueOf(valuetoset); //converts any type to SString 297 298 SString actual = get(i); 298 logPrintf("Param", "set", LOG_WARN, "Setting '%s.%s = %s' exceeded allowed range (too %s). Adjusted to %s.", 299 getName(), id(i), svaluetoset.c_str(), (setflags&PSET_HITMAX) ? "big" : "small", actual.c_str()); 299 bool s_type = type(i)[0] == 's'; 300 logPrintf("Param", "set", LOG_WARN, "Setting '%s.%s = %s' exceeded allowed range (too %s). %s to %s.", 301 getName(), id(i), sstringShorten(svaluetoset, 30).c_str(), (setflags&PSET_HITMAX) ? (s_type ? "long" : "big") : "small", s_type ? "Truncated" : "Adjusted", sstringShorten(actual, 30).c_str()); 300 302 } 301 303 }
Note: See TracChangeset
for help on using the changeset viewer.