diff options
author | Tony Espy <espy@canonical.com> | 2015-12-04 16:15:03 -0500 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2015-12-04 16:26:49 -0600 |
commit | 65e026b7846d2866d21866c5c099f3e91bd9f835 (patch) | |
tree | bd2c427e8032630193af11eda562650ae85cb47e | |
parent | 09670408095b0b19002a5da3014fbfc05e1b083c (diff) | |
download | ofono-65e026b7846d2866d21866c5c099f3e91bd9f835.tar.bz2 |
rilmodem: fix sim_status_cb debug logging
During the re-factoring of rilmodem's sim atom
messaging code, the sim_status_cb function's
RIL tracing code was converted to DBG calls.
This change adds the same prefix to DBG/trace
calls when a single message's parameters span
more than one DBG call. This makes it easier
to filter out trace messages when looking at a
log file.
-rw-r--r-- | drivers/rilmodem/sim.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/rilmodem/sim.c b/drivers/rilmodem/sim.c index fcf9ee98..0942410b 100644 --- a/drivers/rilmodem/sim.c +++ b/drivers/rilmodem/sim.c @@ -774,9 +774,11 @@ static void sim_status_cb(struct ril_msg *message, gpointer user_data) message->serial_no, "RIL_REQUEST_GET_SIM_STATUS"); - DBG("card_state=%d,universal_pin_state=%d," + DBG("[%d,%04d]< card_state=%d,universal_pin_state=%d," "gsm_umts_index=%d,cdma_index=%d,ims_index=%d," "num_apps=%d", + g_ril_get_slot(sd->ril), + message->serial_no, card_state, universal_pin_state, gsm_umts_app_index, cdma_app_index, ims_app_index, num_apps); @@ -883,7 +885,8 @@ static void sim_status_cb(struct ril_msg *message, gpointer user_data) g_free(sd->aid_str); sd->aid_str = parcel_r_string(&rilp); /* AID */ - DBG("app_type: %d, passwd_state: %d, aid_str (AID): %s", + DBG("[%d,%04d]< app_type: %d, passwd_state: %d, aid_str (AID): %s", + g_ril_get_slot(sd->ril), message->serial_no, sd->app_type, sd->passwd_state, sd->aid_str); /* |