Skip to content

Commit

Permalink
SWPTP-1532: trace id of sent messages
Browse files Browse the repository at this point in the history
  • Loading branch information
abower-amd committed Oct 22, 2024
1 parent 79f4607 commit afaba12
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/sfptpd_thread.c
Original file line number Diff line number Diff line change
Expand Up @@ -1135,9 +1135,9 @@ int sfptpd_msg_send(sfptpd_msg_hdr_t *msg, struct sfptpd_thread *recipient,

rc = queue_send(&recipient->queue_general, msg);

SFPTPD_MSG_TRACE("msg %p send %d reply %d rc %d\n", msg,
SFPTPD_MSG_TRACE("msg %p send %d reply %d rc %d id 0x%x\n", msg,
recipient->queue_general.pipe.fds[PIPE_WRITE_IDX],
reply_fd, rc);
reply_fd, rc, id);

/* If we failed to send the message, clear the reply queue, and send
* the message back to its free queue. */
Expand Down Expand Up @@ -1175,9 +1175,9 @@ int sfptpd_msg_send_wait(sfptpd_msg_hdr_t *msg,

rc = queue_send(&recipient->queue_general, msg);

SFPTPD_MSG_TRACE("msg %p send %d reply %d wait rc %d\n", msg,
SFPTPD_MSG_TRACE("msg %p send %d reply %d wait rc %d 0x%x\n", msg,
recipient->queue_general.pipe.fds[PIPE_WRITE_IDX],
reply_fd, rc);
reply_fd, rc, id);

if (rc == 0) {
rc = queue_receive(&self->queue_wait_reply, &reply, true);
Expand Down

0 comments on commit afaba12

Please sign in to comment.