Changeset 2758
- Timestamp:
- Aug 13, 2006, 12:51:31 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/synergy/lib/base/CLog.cpp
r2749 r2758 21 21 #include <cstdio> 22 22 #include <cstring> 23 #ifdef __OS2__ 24 # include <InnoTekLIBC/FastInfoBlocks.h> 25 #endif 23 26 24 27 // names of priorities … … 46 49 47 50 // length of longest string in g_priority 51 #ifdef __OS2__ 52 static const int g_maxPriorityLength = 7 + 30; 53 #else 48 54 static const int g_maxPriorityLength = 7; 55 #endif 49 56 50 57 // length of suffix string (": ") … … 252 259 int n = -g_prioritySuffixLength; 253 260 if (priority >= 0) { 261 #ifdef __OS2__ 262 char sz[80]; 263 snprintf(sz, sizeof(sz), "%d %d %s", fibGetMsCount(), fibGetTid(), g_priority[priority]); 264 n = strlen(sz); 265 assert(n <= g_maxPriorityLength); 266 strcpy(msg + g_maxPriorityLength - n, sz); 267 #else 254 268 n = strlen(g_priority[priority]); 255 269 strcpy(msg + g_maxPriorityLength - n, g_priority[priority]); 270 #endif 256 271 msg[g_maxPriorityLength + 0] = ':'; 257 msg[g_maxPriorityLength + 1] = ' ';258 272 msg[g_maxPriorityLength + 1] = ' '; 259 273 }
Note:
See TracChangeset
for help on using the changeset viewer.