qmimodem: add strength (in %) to the debug output

This commit is contained in:
Alexander Couzens 2017-09-07 22:22:57 +02:00 committed by Denis Kenzior
parent 0b10110a87
commit 8d74986d6e
1 changed files with 3 additions and 2 deletions

View File

@ -450,10 +450,11 @@ static void event_notify(struct qmi_result *result, void *user_data)
if (ss) {
int strength;
DBG("signal with %d dBm on %d", ss->dbm, ss->rat);
strength = dbm_to_strength(ss->dbm);
DBG("signal with %d%%(%d dBm) on %d",
strength, ss->dbm, ss->rat);
ofono_netreg_strength_notify(netreg, strength);
}