Print the error code. Supposedly B_NO_MEMORY, but one never knows.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27835 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold 2008-10-01 21:58:59 +00:00
parent 71662bf2cc
commit e18bafbdb5

View File

@ -998,7 +998,8 @@ team_create_thread_start(void *args)
(void **)&t->user_stack_base, B_EXACT_ADDRESS, sizeLeft, B_NO_LOCK,
B_READ_AREA | B_WRITE_AREA | B_STACK_AREA, 0);
if (t->user_stack_area < 0) {
dprintf("team_create_thread_start: could not create default user stack region\n");
dprintf("team_create_thread_start: could not create default user stack "
"region: %s\n", strerror(t->user_stack_area));
free_team_arg(teamArgs);
return t->user_stack_area;