host_communication: Fix TRACE_ERROR syntax
diff --git a/firmware/src_simtrace/host_communication.c b/firmware/src_simtrace/host_communication.c
index e73b826..10561c4 100644
--- a/firmware/src_simtrace/host_communication.c
+++ b/firmware/src_simtrace/host_communication.c
@@ -25,7 +25,7 @@
rc = USBD_Write(PHONE_DATAIN, rctx->data, rctx->tot_len,
(TransferCallback) &usb_write_cb, rctx);
if (rc != USBD_STATUS_SUCCESS) {
- TRACE_ERROR("%s error %x\n", __func__, ret);
+ TRACE_ERROR("%s error %x\n", __func__, rc);
req_ctx_set_state(rctx, RCTX_S_USB_TX_PENDING);
return 0;
}
@@ -58,7 +58,7 @@
(TransferCallback) &usb_read_cb, rctx);
if (rc != USBD_STATUS_SUCCESS) {
- TRACE_ERROR("%s error %x\n", __func__, ret);
+ TRACE_ERROR("%s error %x\n", __func__, rc);
req_ctx_put(rctx);
}