Lines Matching refs:rc
93 ESR_ReturnCode rc;
97 rc = pvfprintf(p->fp, format, args);
99 return rc;
155 ESR_ReturnCode rc = ESR_SUCCESS;
163 if ((rc = PtrdMutexCreate(&Gmutex)) != ESR_SUCCESS)
164 return rc;
171 rc = createPFileLogger(PSTDERR, &Glogger);
172 if (rc != ESR_SUCCESS)
176 return rc;
185 return rc;
213 ESR_ReturnCode rc = ESR_SUCCESS;
219 if ((rc = PtrdMutexDestroy(Gmutex)) != ESR_SUCCESS)
220 return rc;
228 return rc;
253 #define PLOG_PANIC(x, rc) \
257 pfprintf(PSTDERR, L("[%s:%d] %s failed with %s\n"), __FILE__, __LINE__, x, ESR_rc2str(rc)); \
264 ESR_ReturnCode rc = ESR_SUCCESS;
291 rc = PStackTraceCreate();
292 if (rc != ESR_SUCCESS)
294 PLOG_PANIC(L("PStackTraceCreate"), rc);
301 rc = PtrdMutexLock(Gmutex);
302 if (rc != ESR_SUCCESS)
303 return rc;
329 rc = psprintf(buffer + LSTRLEN(buffer), L("trd=%u|"), PtrdGetCurrentThreadId());
340 rc = PStackTraceGetValue((LCHAR*) & text, &len);
341 if (rc == ESR_SUCCESS)
345 rc = PStackTracePopLevel((LCHAR*) & text);
346 if (rc != ESR_SUCCESS)
348 PLOG_PANIC(L("PStackTracePopLevel"), rc);
364 else if (rc == ESR_NOT_SUPPORTED)
366 else if (rc != ESR_SUCCESS)
368 PLOG_PANIC(L("PStackTraceGetValue"), rc);
371 rc = psprintf(buffer + LSTRLEN(buffer), L("Module=%s|"), text);
386 rc = Glogger->printf(Glogger, L("%s"), buffer);
387 if (rc != ESR_SUCCESS)
411 return rc != ESR_SUCCESS ? rc : flushRC;
423 ESR_ReturnCode rc;
438 rc = PStackTraceGetDepth(&depth);
440 if (rc == ESR_NOT_SUPPORTED)
445 else if (rc != ESR_SUCCESS)
447 pfprintf(PSTDERR, L("PStackTraceGetDepth"), ESR_rc2str(rc));
458 rc = logIt(msg, args, ESR_FALSE);
460 return rc;
463 return rc;
477 ESR_ReturnCode rc;
497 rc = 0;
499 rc = logIt(msg, args, ESR_TRUE);
502 rc = logIt(msg, args, ESR_TRUE);
506 return rc;