mirror of
https://github.com/hermitcore/libhermit.git
synced 2025-03-30 00:00:15 +01:00
add some additional debug messages
This commit is contained in:
parent
6028d05a41
commit
2988496ef9
1 changed files with 3 additions and 1 deletions
|
@ -24,7 +24,7 @@ static void* perform_work( void* argument )
|
|||
int passed_in_value;
|
||||
|
||||
passed_in_value = *( ( int* )argument );
|
||||
printf( "Hello World! It's me, thread %d with argument %d!\n", getpid(), passed_in_value );
|
||||
printf("Hello World! It's me, thread %d with argument %d!\n", getpid(), passed_in_value );
|
||||
|
||||
/* optionally: insert more useful stuff here */
|
||||
for(int i=0; i<NUM_ITER; i++)
|
||||
|
@ -32,7 +32,9 @@ static void* perform_work( void* argument )
|
|||
buf = malloc(SIZE*i);
|
||||
free(buf);
|
||||
}
|
||||
printf("malloc_stats from thread %d\n", getpid());
|
||||
malloc_stats();
|
||||
printf("thread %d leaves thread function\n", getpid());
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue