Ticket #312: apilog-2.1.7.diff

File apilog-2.1.7.diff, 720 bytes (added by kklobe, 17 years ago)

DIFF patch for 2.1.7 ApiLog.cpp

Line 
1123a124,155
2> LPTSTR hex = _T("00000000");
3> int addr = (int)this;
4> pos = 0;
5> while (addr)
6> {
7> switch(addr%16)
8> {
9> case 10:
10> hex[pos] = 'a';
11> break;
12> case 11:
13> hex[pos] = 'b';
14> break;
15> case 12:
16> hex[pos] = 'c';
17> break;
18> case 13:
19> hex[pos] = 'd';
20> break;
21> case 14:
22> hex[pos] = 'e';
23> break;
24> case 15:
25> hex[pos] = 'f';
26> break;
27> default:
28> hex[pos] = (addr%16) + '0';
29> break;
30> }
31> pos++;
32> addr /= 16;
33> }
34125c157
35< msg.Format(_T("%s(%d): %s caller=0x%08x"), SourceFile, nSourceLine, text, (int)this);
36---
37> msg.Format(_T("%s(%d): %s caller=0x%s"), SourceFile, nSourceLine, text, hex);
38
39