Skip to content

Commit

Permalink
Low: check_ipc.c: fix debug message to only display once.
Browse files Browse the repository at this point in the history
  • Loading branch information
davidvossel committed Jul 19, 2013
1 parent bde8496 commit 1dbbeb8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/check_ipc.c
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,6 @@ s1_msg_process_fn(qb_ipcs_connection_t *c,
size_t sent_len = sizeof(struct qb_ipc_response_header);

if (((m+1) % 1000) == 0) {
qb_log(LOG_DEBUG, "SENT: %d stress events sent", m+1);
sent_len = sizeof(struct giant_event);
giant_event_send.sent_msgs = m + 1;
}
Expand All @@ -211,6 +210,8 @@ s1_msg_process_fn(qb_ipcs_connection_t *c,
qb_perror(LOG_DEBUG, "sending stress events");
ck_assert_int_eq(res, sent_len);
}
} else if (((m+1) % 1000) == 0) {
qb_log(LOG_DEBUG, "SENT: %d stress events sent", m+1);
}
giant_event_send.hdr.id++;
}
Expand Down

0 comments on commit 1dbbeb8

Please sign in to comment.