diff options
author | Lukas Larsson <[email protected]> | 2013-10-30 17:56:37 +0100 |
---|---|---|
committer | Lukas Larsson <[email protected]> | 2014-02-24 15:16:00 +0100 |
commit | a6788ea337a2319a2d1a42ee4618553a1c7765bf (patch) | |
tree | 76bd19e2bf8076a1b19c2e7e0d4215b9469e747e /erts/lib_src/ose/ethread.c | |
parent | d932131754c2bfb2e0539b6419e3d09533fe84e8 (diff) | |
download | otp-a6788ea337a2319a2d1a42ee4618553a1c7765bf.tar.gz otp-a6788ea337a2319a2d1a42ee4618553a1c7765bf.tar.bz2 otp-a6788ea337a2319a2d1a42ee4618553a1c7765bf.zip |
ose: Fix various build environment issues
Diffstat (limited to 'erts/lib_src/ose/ethread.c')
-rw-r--r-- | erts/lib_src/ose/ethread.c | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/erts/lib_src/ose/ethread.c b/erts/lib_src/ose/ethread.c index 7046cc8d03..01d58e65b2 100644 --- a/erts/lib_src/ose/ethread.c +++ b/erts/lib_src/ose/ethread.c @@ -125,23 +125,30 @@ static OS_PROCESS(thr_wrapper) void *arg; ethr_ts_event *tsep = NULL; +#ifdef DEBUG { PROCESS pid = current_process(); - const char *execMode = get_pid_info(pid, OSE_PI_SUPERVISOR) - ? "Supervisor" - : "User"; + const char *execMode; + PROCESS bid = get_bid(pid); /* In the call below, 16 is a secret number provided by frbr that makes * the function return current domain. */ OSADDRESS domain = get_pid_info(current_process(), 16); -#ifdef DEBUG +#ifdef HAVE_OSE_SPI_H + execMode = get_pid_info(pid, OSE_PI_SUPERVISOR) + ? "Supervisor" + : "User"; +#else + execMode = "unknown"; +#endif + fprintf(stderr,"[0x%x] New process. Bid:0x%x, domain:%d, exec mode:%s\n", current_process(), bid, domain, execMode); -#endif } +#endif { SIGSELECT sigsel[] = {1,ETHREADWRAPDATASIG}; |