OLD | NEW |
1 /******************************************************************************* | 1 /******************************************************************************* |
| 2 * dennis added |
2 * Copyright(c) Bosch Security Systems 2007 | 3 * Copyright(c) Bosch Security Systems 2007 |
3 * The attached material and the information contained therein is proprietary | 4 * The attached material and the information contained therein is proprietary |
4 * to Bosch and is issued only under strict confidentiality arrangements. | 5 * to Bosch and is issued only under strict confidentiality arrangements. |
5 * It shall not be used, reproduced, copied in whole or in part, adapted, | 6 * It shall not be used, reproduced, copied in whole or in part, adapted, |
6 * modified, or disseminated without a written license of Bosch.··········· | 7 * modified, or disseminated without a written license of Bosch.··········· |
7 * It must be returned to Bosch upon its first request. | 8 * It must be returned to Bosch upon its first request. |
8 *························ | 9 *························ |
9 * Project : Midas | 10 * Project : Midas |
10 * Component : PC Apps Control Center | 11 * Component : PC Apps Control Center |
11 * Description:· | 12 * Description:· |
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
173 { | 174 { |
174 // A negative value returned from _vsnprintf means that the stri
ng | 175 // A negative value returned from _vsnprintf means that the stri
ng |
175 // does not fit in logMessage. In this case, we will truncate t
he | 176 // does not fit in logMessage. In this case, we will truncate t
he |
176 // log message and append a terminating NULL but still return su
ccess. | 177 // log message and append a terminating NULL but still return su
ccess. |
177 logMessage[sizeof(logMessage)/sizeof(logMessage[0]) - 1] = '\0'; | 178 logMessage[sizeof(logMessage)/sizeof(logMessage[0]) - 1] = '\0'; |
178 } | 179 } |
179 | 180 |
180 HRESULT_OK(((VideoSDK::IDiagnosticLog*)m_pLog)->LogMessage(_bstr_t(class
Name), _bstr_t(functionName),·· | 181 HRESULT_OK(((VideoSDK::IDiagnosticLog*)m_pLog)->LogMessage(_bstr_t(class
Name), _bstr_t(functionName),·· |
181 _bstr_t(type), logLevel, _bstr_t(logMessage))); | 182 _bstr_t(type), logLevel, _bstr_t(logMessage))); |
182 } | 183 } |
OLD | NEW |