Skip to content

Commit

Permalink
Use of correct federate ID in tracing of absent messages (#248)
Browse files Browse the repository at this point in the history
* Fix wrong fed id in tracing absent messages

* Access the id, not the federate

* Update lingua-franca-ref.txt

---------

Co-authored-by: Marten Lohstroh <marten@berkeley.edu>
  • Loading branch information
ChadliaJerad and lhstrh authored Jul 6, 2023
1 parent 9b2c8f4 commit 9e9f427
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/federated/RTI/rti_lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ void handle_port_absent_message(federate_t* sending_federate, unsigned char* buf
tag_t tag = extract_tag(&(buffer[1 + 2 * sizeof(uint16_t)]));

if (_f_rti->tracing_enabled) {
tracepoint_rti_from_federate(_f_rti->trace, receive_PORT_ABS, federate_id, &tag);
tracepoint_rti_from_federate(_f_rti->trace, receive_PORT_ABS, sending_federate->enclave.id, &tag);
}

// Need to acquire the mutex lock to ensure that the thread handling
Expand Down

0 comments on commit 9e9f427

Please # to comment.