Changeset 1854 in vbox for trunk/src/libs/xpcom18a4/ipc/ipcd/shared
- Timestamp:
- Apr 2, 2007 11:23:02 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/libs/xpcom18a4/ipc/ipcd/shared/src/ipcLog.cpp
r1 r1854 119 119 #ifdef VBOX 120 120 // initialize VBox Runtime 121 RTR3Init( );122 121 RTR3Init(false); 122 123 123 PL_strncpyz(ipcLogPrefix, prefix, sizeof(ipcLogPrefix)); 124 124 #else … … 127 127 PL_strncpyz(ipcLogPrefix, prefix, sizeof(ipcLogPrefix)); 128 128 } 129 #endif 129 #endif 130 130 } 131 131 … … 142 142 nb = strlen(ipcLogPrefix); 143 143 if (nb > sizeof(buf) - 2) 144 nb = sizeof(buf) - 2; 144 nb = sizeof(buf) - 2; 145 145 PL_strncpy(buf, ipcLogPrefix, nb); 146 146 buf[nb++] = ' '; … … 149 149 if (ipcLogPrefix[0]) 150 150 nb = WritePrefix(buf, sizeof(buf)); 151 #endif 151 #endif 152 152 153 153 PR_vsnprintf(buf + nb, sizeof(buf) - nb, fmt, ap); … … 158 158 #else 159 159 fwrite(buf, strlen(buf), 1, stdout); 160 #endif 160 #endif 161 161 162 162 va_end(ap); … … 172 172 173 173 ln = 0; 174 174 175 175 p = &data[i]; 176 176 for (j=0; j<PR_MIN(8, len - i); ++j, ++p)
Note:
See TracChangeset
for help on using the changeset viewer.