From 29f8f0e5d4352e5efdf45b9ad0f9258615447841 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Sun, 28 Feb 2016 12:44:30 +0100 Subject: [PATCH] improvements in req_ctx debugging --- firmware/src_simtrace/req_ctx.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/firmware/src_simtrace/req_ctx.c b/firmware/src_simtrace/req_ctx.c index 8040fec5..8378620e 100644 --- a/firmware/src_simtrace/req_ctx.c +++ b/firmware/src_simtrace/req_ctx.c @@ -81,6 +81,8 @@ req_ctx_find_get(int large, uint32_t old_state, uint32_t new_state) } #endif local_irq_restore(flags); + TRACE_DEBUG("%s(%u, %u, %u)=%p\n", __func__, large, old_state, + new_state, toReturn); return toReturn; } @@ -94,7 +96,7 @@ void req_ctx_set_state(struct req_ctx *ctx, uint32_t new_state) unsigned long flags; unsigned old_state; - TRACE_DEBUG("rctx_set_state(ctx=%p, new_state=%u)\n", ctx, new_state); + TRACE_DEBUG("%s(ctx=%p, new_state=%u)\n", __func__, ctx, new_state); if (new_state >= RCTX_STATE_COUNT) { TRACE_DEBUG("Invalid new_state for req_ctx_set_state\n");