Skip to content
This repository has been archived by the owner on Sep 13, 2024. It is now read-only.

Commit

Permalink
Adjust verb levels
Browse files Browse the repository at this point in the history
  • Loading branch information
RoEdAl committed Jun 20, 2024
1 parent 44707f5 commit fdaa08d
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 13 deletions.
16 changes: 8 additions & 8 deletions src/at_response.c
Original file line number Diff line number Diff line change
Expand Up @@ -2097,8 +2097,8 @@ static int at_response_qnwinfo(struct pvt* const pvt, const struct ast_str* cons
pvt->operator= oper;
ast_string_field_set(pvt, band, band);

ast_verb(1, "[%s] Registered PLMN: %d\n", PVT_ID(pvt), oper);
ast_verb(1, "[%s] Band: %s\n", PVT_ID(pvt), band);
ast_verb(2, "[%s] Registered PLMN: %d\n", PVT_ID(pvt), oper);
ast_verb(2, "[%s] Band: %s\n", PVT_ID(pvt), band);
return 0;
}

Expand Down Expand Up @@ -2467,7 +2467,7 @@ static void at_response_qrxgain(struct pvt* const pvt, const struct ast_str* con
}

RAII_VAR(struct ast_str*, sgain, gain2str(gain), ast_free);
ast_verb(1, "[%s] RX Gain: %s [%d]\n", PVT_ID(pvt), ast_str_buffer(sgain), gain);
ast_verb(2, "[%s] RX Gain: %s [%d]\n", PVT_ID(pvt), ast_str_buffer(sgain), gain);
}

static void at_response_qmic(struct pvt* const pvt, const struct ast_str* const response)
Expand All @@ -2480,7 +2480,7 @@ static void at_response_qmic(struct pvt* const pvt, const struct ast_str* const
}

RAII_VAR(struct ast_str*, sgain, gain2str(gain), ast_free);
ast_verb(1, "[%s] Microphone Gain: %s [%d], %d\n", PVT_ID(pvt), ast_str_buffer(sgain), gain, dgain);
ast_verb(2, "[%s] Microphone Gain: %s [%d], %d\n", PVT_ID(pvt), ast_str_buffer(sgain), gain, dgain);
}

static void at_response_cmicgain(struct pvt* const pvt, const struct ast_str* const response)
Expand All @@ -2493,7 +2493,7 @@ static void at_response_cmicgain(struct pvt* const pvt, const struct ast_str* co
}

RAII_VAR(struct ast_str*, sgain, gain2str_simcom(gain), ast_free);
ast_verb(1, "[%s] RX Gain: %s [%d]\n", PVT_ID(pvt), ast_str_buffer(sgain), gain);
ast_verb(2, "[%s] RX Gain: %s [%d]\n", PVT_ID(pvt), ast_str_buffer(sgain), gain);
}

static void at_response_coutgain(struct pvt* const pvt, const struct ast_str* const response)
Expand All @@ -2506,7 +2506,7 @@ static void at_response_coutgain(struct pvt* const pvt, const struct ast_str* co
}

RAII_VAR(struct ast_str*, sgain, gain2str_simcom(gain), ast_free);
ast_verb(1, "[%s] TX Gain: %s [%d]\n", PVT_ID(pvt), ast_str_buffer(sgain), gain);
ast_verb(2, "[%s] TX Gain: %s [%d]\n", PVT_ID(pvt), ast_str_buffer(sgain), gain);
}

static void at_response_crxvol(struct pvt* const pvt, const struct ast_str* const response)
Expand All @@ -2519,7 +2519,7 @@ static void at_response_crxvol(struct pvt* const pvt, const struct ast_str* cons
}

RAII_VAR(struct ast_str*, sgain, gain2str(gain), ast_free);
ast_verb(1, "[%s] RX Volume: %s [%d]\n", PVT_ID(pvt), ast_str_buffer(sgain), gain);
ast_verb(2, "[%s] RX Volume: %s [%d]\n", PVT_ID(pvt), ast_str_buffer(sgain), gain);
}

static void at_response_ctxvol(struct pvt* const pvt, const struct ast_str* const response)
Expand All @@ -2532,7 +2532,7 @@ static void at_response_ctxvol(struct pvt* const pvt, const struct ast_str* cons
}

RAII_VAR(struct ast_str*, sgain, gain2str(gain), ast_free);
ast_verb(1, "[%s] Microphone Volume: %s [%d]\n", PVT_ID(pvt), ast_str_buffer(sgain), gain);
ast_verb(2, "[%s] Microphone Gain: %s [%d]\n", PVT_ID(pvt), ast_str_buffer(sgain), gain);
}

static int at_response_qaudloop(struct pvt* const pvt, const struct ast_str* const response)
Expand Down
8 changes: 4 additions & 4 deletions src/chan_quectel.c
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ static int soundcard_init(struct pvt* pvt)
return -1;
}

ast_verb(2, "[%s][ALSA] Sound card '%s' initialized\n", PVT_ID(pvt), CONF_UNIQ(pvt, alsadev));
ast_verb(2, "[%s] Sound card '%s' initialized\n", PVT_ID(pvt), CONF_UNIQ(pvt, alsadev));
return 0;
}

Expand Down Expand Up @@ -234,7 +234,7 @@ static void pvt_start(struct pvt* const pvt)

pvt_monitor_stop(pvt);

ast_verb(3, "[%s] Trying to connect data port %s...\n", PVT_ID(pvt), CONF_UNIQ(pvt, alsadev));
ast_verb(3, "[%s] Opening data port: %s\n", PVT_ID(pvt), CONF_UNIQ(pvt, data_tty));
pvt->data_fd = tty_open(CONF_UNIQ(pvt, data_tty), (CONF_UNIQ(pvt, uac) == TRIBOOL_NONE) ? 2 : 0);
if (pvt->data_fd < 0) {
return;
Expand All @@ -247,7 +247,7 @@ static void pvt_start(struct pvt* const pvt)
}
} else {
// TODO: delay until device activate voice call or at pvt_on_create_1st_channel()
ast_verb(3, "[%s] Trying to open audio port %s...\n", PVT_ID(pvt), CONF_UNIQ(pvt, audio_tty));
ast_verb(3, "[%s] Opening audio port: %s\n", PVT_ID(pvt), CONF_UNIQ(pvt, audio_tty));
pvt->audio_fd = tty_open(CONF_UNIQ(pvt, audio_tty), pvt->is_simcom);
if (pvt->audio_fd < 0) {
goto cleanup_datafd;
Expand Down Expand Up @@ -282,7 +282,7 @@ static void pvt_start(struct pvt* const pvt)

pvt->connected = 1;
pvt->current_state = DEV_STATE_STARTED;
ast_verb(3, "[%s] Connected, initializing...\n", PVT_ID(pvt));
ast_verb(3, "[%s] Ports opened, initializing...\n", PVT_ID(pvt));
return;

cleanup_audiofd:
Expand Down
1 change: 0 additions & 1 deletion src/channel.c
Original file line number Diff line number Diff line change
Expand Up @@ -869,7 +869,6 @@ static int channel_devicestate(const char* data)
const char* const device = ast_strdupa(S_OR(data, ""));
ast_debug(1, "[%s] Checking device state\n", device);


RAII_VAR(struct pvt* const, pvt, pvt_find_by_ext(device), pvt_unlock);

if (!pvt) {
Expand Down

0 comments on commit fdaa08d

Please sign in to comment.