Commit ac5ad82f authored by Dimitris Lampridis's avatar Dimitris Lampridis

sw/fw: log sw triggers as well

parent 07c22eae
......@@ -90,7 +90,7 @@ static int wrtd_in_trigger_log(int type, int miss_reason,
msg.header->len = sizeof(struct wrtd_log_entry) / 4;
log = (struct wrtd_log_entry *)msg.payload;
log->type = type;
log->channel = st->n;
log->channel = st ? st->n : -1;
log->miss_reason = miss_reason;
log->seq = ent->seq;
log->id = ent->id;
......@@ -292,6 +292,7 @@ static int wrtd_in_trigger_sw(struct trtl_fw_msg *msg_i, struct trtl_fw_msg *msg
/* Send trigger */
send_trigger(&ent);
wrtd_in_trigger_log(WRTD_LOG_SENT, 0, NULL, &ent);
return 0;
}
......
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