From 514c6d1da06932922af493057110da5e9eedc69a Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Fri, 3 Nov 2017 20:40:56 +0100 Subject: [PATCH] [firmware] wwan_perst: Print index when releasing WWAN_PERST --- firmware/libboard/qmod/source/wwan_perst.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/firmware/libboard/qmod/source/wwan_perst.c b/firmware/libboard/qmod/source/wwan_perst.c index d00ce89a..a044ff66 100644 --- a/firmware/libboard/qmod/source/wwan_perst.c +++ b/firmware/libboard/qmod/source/wwan_perst.c @@ -12,18 +12,21 @@ #include "osmocom/core/timer.h" struct wwan_perst { + uint8_t idx; const Pin pin; struct osmo_timer_list timer; }; #ifdef PIN_PERST1 static struct wwan_perst perst1 = { + .idx = 0, .pin = PIN_PERST1, }; #endif #ifdef PIN_PERST2 static struct wwan_perst perst2 = { + .idx = 1, .pin = PIN_PERST2, }; #endif @@ -34,7 +37,7 @@ static void perst_tmr_cb(void *data) { struct wwan_perst *perst = data; /* release the (low-active) reset */ - TRACE_INFO("De-asserting modem reset\r\n"); + TRACE_INFO("%u: De-asserting modem reset\r\n", perst->idx); PIO_Clear(&perst->pin); }