From 2ad0ca15a8722fa3e3f1d127b5f9b11e3519492e Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Mon, 29 Feb 2016 10:07:16 +0100 Subject: [PATCH] host_communication: Fix TRACE_ERROR syntax --- firmware/src_simtrace/host_communication.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/firmware/src_simtrace/host_communication.c b/firmware/src_simtrace/host_communication.c index e73b826f..10561c41 100644 --- a/firmware/src_simtrace/host_communication.c +++ b/firmware/src_simtrace/host_communication.c @@ -25,7 +25,7 @@ int usb_to_host(void) 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 @@ int usb_from_host(int ep) (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); }