Skip to content
Snippets Groups Projects
Commit 6f6f7350 authored by Anh Nguyen-Tuong's avatar Anh Nguyen-Tuong
Browse files

Cleanup

parent af935c06
No related branches found
No related tags found
No related merge requests found
/*
* Copyright (c) 2018 - Zephyr Software LLC
* Copyright (c) 2018-2019 - Zephyr Software LLC
*
* This file may be used and modified for non-commercial purposes as long as
* all copyright, permission, and nonwarranty notices are preserved.
......@@ -73,7 +73,7 @@ static void zafl_setupSharedMemory()
zafl_trace_map = NULL;
const void* trace_map_fixed_addr = getenv("ZAFL_TRACE_MAP_FIXED_ADDRESS");
const int do_fixed_addr_optimization = (trace_map_fixed_addr!=NULL);
const int do_fixed_addr_optimization = (trace_map_fixed_addr!=NULL);
void* shmat_addr = do_fixed_addr_optimization ?
(void*)strtoul(trace_map_fixed_addr, NULL, 0) :
......@@ -101,9 +101,6 @@ static void zafl_setupSharedMemory()
return;
}
shm_id = atoi(shm_env_var);
zafl_trace_map = (u8*)shmat(shm_id, shmat_addr, 0);
if(zafl_trace_map == (u8*)-1) {
......@@ -184,7 +181,7 @@ void zafl_dumpTracemap()
if (!debug) return;
if (!zafl_trace_map) return;
printf("\nDEBUG output: trace map:\n");
printf("\nDEBUG output -- trace map\n");
for (i = 0; i < MAP_SIZE; ++i)
{
if (zafl_trace_map[i]!=0)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment