Commit af14911e authored by yangxuserene's avatar yangxuserene
Browse files

add printf for debug

parent ec142cc9
...@@ -135,6 +135,8 @@ void codes_workload_get_next( ...@@ -135,6 +135,8 @@ void codes_workload_get_next(
break; break;
tmp = tmp->next; tmp = tmp->next;
} }
if(tmp==NULL)
printf("tmp is NULL, rank=%d, app_id = %d", rank, app_id);
assert(tmp); assert(tmp);
if(tmp->lifo) if(tmp->lifo)
{ {
......
...@@ -703,7 +703,7 @@ void dumpi_trace_nw_workload_get_next(int app_id, int rank, struct codes_workloa ...@@ -703,7 +703,7 @@ void dumpi_trace_nw_workload_get_next(int app_id, int rank, struct codes_workloa
hash_link = qhash_search(rank_tbl, &cmp); hash_link = qhash_search(rank_tbl, &cmp);
if(!hash_link) if(!hash_link)
{ {
printf("\n not found for rank id %d ", rank); printf("\n not found for rank id %d , %d", rank, app_id);
op->op_type = CODES_WK_END; op->op_type = CODES_WK_END;
return; return;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment