Changeset 375 for cpp/frams/util/validitychecks.cpp
- Timestamp:
- 04/26/15 00:59:09 (9 years ago)
- File:
-
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
cpp/frams/util/validitychecks.cpp
r374 r375 3 3 // See LICENSE.txt for details. 4 4 5 #include " stderrors.h"5 #include "validitychecks.h" 6 6 #include <frams/util/sstringutils.h> 7 #include <common/ hmessage.h>7 #include <common/log.h> 8 8 9 9 bool listIndexCheck(SList* list,int index,const char* msgobj,const char* msgfun) … … 13 13 { 14 14 if (size>0) 15 Hprintf(msgobj,msgfun,HMLV_ERROR,"Invalid index %d (allowed range is 0..%d)",index,size-1);15 logPrintf(msgobj,msgfun,LOG_ERROR,"Invalid index %d (allowed range is 0..%d)",index,size-1); 16 16 else 17 Hprintf(msgobj,msgfun,HMLV_ERROR,"Invalid index %d (this list is empty)",index);17 logPrintf(msgobj,msgfun,LOG_ERROR,"Invalid index %d (this list is empty)",index); 18 18 return 0; 19 19 } … … 29 29 { 30 30 SString msg2=SString(msg)+": \"%s\" (adjusted to \"%s\")"; 31 Hprintf(msgobj,msgfun,HMLV_WARN,msg2.c_str(),in.c_str(),corrected.c_str());31 logPrintf(msgobj,msgfun,LOG_WARN,msg2.c_str(),in.c_str(),corrected.c_str()); 32 32 } 33 33 return corrected;
Note: See TracChangeset
for help on using the changeset viewer.