{
int i;
- printf("Backtrace for thread Id (%lu) total threads = %d\n", (unsigned long) pthread_self(), osCp.numSTsks);
+ printf("\nBacktrace for thread Id (%lu) total threads = %d\n", (unsigned long) pthread_self(), osCp.numSTsks);
ysPrntBkTrace();
for(i = 0; i < osCp.numSTsks; i++)
{
Void mtSigUsr2Hndlr()
{
- printf("Backtrace for thread Id (%lu) cause:SIGUSR2(%d)\n",(unsigned long) pthread_self(),SIGUSR2);
+ printf("\nBacktrace for thread Id (%lu) cause:SIGUSR2(%d)\n",(unsigned long) pthread_self(),SIGUSR2);
pthread_mutex_lock(&dumpingLock);
ysPrntBkTrace();
if(newNextFreeIdx == 0 || newNextFreeIdx >= MAX_MEM_ALLOCATIONS)
{
- printf("Something wrong in GetNextFreeIdx newNextIdx = %ld\n",newNextFreeIdx);
+ printf("\nSomething wrong in GetNextFreeIdx newNextIdx = %ld\n",newNextFreeIdx);
}
memAllocInfo->nextFreeIdx = newNextFreeIdx;
CRASH_ENB
#endif
- printf("Freeing wrong ptr stored = %p trying to free %p freeing size (%ld)"
+ printf("\nFreeing wrong ptr stored = %p trying to free %p freeing size (%ld)"
"allocated size(%ld) from %s:%ld\n",
memAllocInfo->allocations[idx].ptr,
ptr,
memAllocInfo->allocations[idx].size,
file,
line);
- printf("Allocation was done from %s:%ld\n",memAllocInfo->allocations[idx].file, memAllocInfo->allocations[idx].lineNo);
- printf("***********************************************************\n");
+ printf("\nAllocation was done from %s:%ld\n",memAllocInfo->allocations[idx].file, memAllocInfo->allocations[idx].lineNo);
+ printf("\n***********************************************************\n");
CRASH_ENB
}
StaticMemLeakFileArr[3] == NULL)
{
int *p = 0;
- printf("Could not open files for Static Mem Leak detection logging :( crashing...\n");
+ printf("\nCould not open files for Static Mem Leak detection logging :( crashing...\n");
*p = 100;
}