Changeset 2205 in MondoRescue for branches/2.2.9/mondo/src/common/libmondo-tools.c
- Timestamp:
- May 14, 2009, 3:10:51 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.9/mondo/src/common/libmondo-tools.c
r2195 r2205 1337 1337 int i; 1338 1338 static int depth = 0; 1339 char *tmp;1340 1339 FILE *fout; 1341 1340 … … 1345 1344 } 1346 1345 depth++; 1347 1348 malloc_string(tmp);1349 1346 1350 1347 if (debug_level <= g_loglevel) { … … 1359 1356 fprintf(fout, "\t"); 1360 1357 if (getpid() == g_main_pid) 1361 fprintf(fout, "[Main] %s->%s#%d: ", szFile, szFunction, 1362 nLine); 1358 fprintf(fout, "[Main] %s->%s#%d: ", szFile, szFunction, nLine); 1363 1359 else if (getpid() == g_buffer_pid && g_buffer_pid > 0) 1364 fprintf(fout, "[Buff] %s->%s#%d: ", szFile, szFunction, 1365 nLine); 1360 fprintf(fout, "[Buff] %s->%s#%d: ", szFile, szFunction, nLine); 1366 1361 else 1367 fprintf(fout, "[TH=%d] %s->%s#%d: ", getpid(), szFile, 1368 szFunction, nLine); 1362 fprintf(fout, "[TH=%d] %s->%s#%d: ", getpid(), szFile, szFunction, nLine); 1369 1363 } 1370 1364 vfprintf(fout, fmt, args); … … 1380 1374 } 1381 1375 depth--; 1382 paranoid_free(tmp);1383 1376 } 1384 1377
Note:
See TracChangeset
for help on using the changeset viewer.