core,log: new 'MSG' log level between 'INFO' and 'WARN'
We're bumping the current "INFO" level messages to the new "MSG" level, also making the new level the default. The old "INFO" level will be used to setup an intermediate level of logging which is not as verbose as "DEBUG" but still provides some capabilities to analyze the behavior of a modem.
This commit is contained in:
committed by
Aleksander Morgado
parent
823f3e7995
commit
b3f315ad2d
@@ -2851,16 +2851,16 @@ cinterion_scks_unsolicited_handler (MMPortSerialAt *port,
|
||||
|
||||
switch (scks) {
|
||||
case 0:
|
||||
mm_obj_info (self, "SIM removal detected");
|
||||
mm_obj_msg (self, "SIM removal detected");
|
||||
break;
|
||||
case 1:
|
||||
mm_obj_info (self, "SIM insertion detected");
|
||||
mm_obj_msg (self, "SIM insertion detected");
|
||||
break;
|
||||
case 2:
|
||||
mm_obj_info (self, "SIM interface hardware deactivated (Potentially non-electrically compatible SIM inserted)");
|
||||
mm_obj_msg (self, "SIM interface hardware deactivated (potentially non-electrically compatible SIM inserted)");
|
||||
break;
|
||||
case 3:
|
||||
mm_obj_info (self, "SIM interface hardware deactivated (Technical problem, no precise diagnosis)");
|
||||
mm_obj_msg (self, "SIM interface hardware deactivated (technical problem, no precise diagnosis)");
|
||||
break;
|
||||
default:
|
||||
g_assert_not_reached ();
|
||||
|
||||
@@ -1043,7 +1043,7 @@ cdma_activation_step (GTask *task)
|
||||
case CDMA_ACTIVATION_STEP_REQUEST_ACTIVATION: {
|
||||
gchar *command;
|
||||
|
||||
mm_obj_info (self, "activation step [1/5]: setting up activation details");
|
||||
mm_obj_msg (self, "activation step [1/5]: setting up activation details");
|
||||
command = g_strdup_printf ("$NWACTIVATION=%s,%s,%s",
|
||||
mm_cdma_manual_activation_properties_get_spc (ctx->properties),
|
||||
mm_cdma_manual_activation_properties_get_mdn (ctx->properties),
|
||||
@@ -1059,7 +1059,7 @@ cdma_activation_step (GTask *task)
|
||||
}
|
||||
|
||||
case CDMA_ACTIVATION_STEP_OTA_UPDATE:
|
||||
mm_obj_info (self, "activation step [2/5]: starting OTA activation");
|
||||
mm_obj_msg (self, "activation step [2/5]: starting OTA activation");
|
||||
mm_base_modem_at_command (MM_BASE_MODEM (self),
|
||||
"+IOTA=1",
|
||||
20,
|
||||
@@ -1069,7 +1069,7 @@ cdma_activation_step (GTask *task)
|
||||
return;
|
||||
|
||||
case CDMA_ACTIVATION_STEP_PRL_UPDATE:
|
||||
mm_obj_info (self, "activation step [3/5]: starting PRL update");
|
||||
mm_obj_msg (self, "activation step [3/5]: starting PRL update");
|
||||
mm_base_modem_at_command (MM_BASE_MODEM (self),
|
||||
"+IOTA=2",
|
||||
20,
|
||||
@@ -1079,7 +1079,7 @@ cdma_activation_step (GTask *task)
|
||||
return;
|
||||
|
||||
case CDMA_ACTIVATION_STEP_WAIT_UNTIL_FINISHED:
|
||||
mm_obj_info (self, "activation step [4/5]: checking activation process status");
|
||||
mm_obj_msg (self, "activation step [4/5]: checking activation process status");
|
||||
mm_base_modem_at_command (MM_BASE_MODEM (self),
|
||||
"+IOTA?",
|
||||
20,
|
||||
@@ -1089,7 +1089,7 @@ cdma_activation_step (GTask *task)
|
||||
return;
|
||||
|
||||
case CDMA_ACTIVATION_STEP_LAST:
|
||||
mm_obj_info (self, "activation step [5/5]: activation process finished");
|
||||
mm_obj_msg (self, "activation step [5/5]: activation process finished");
|
||||
g_task_return_boolean (task, TRUE);
|
||||
g_object_unref (task);
|
||||
return;
|
||||
|
||||
@@ -1400,7 +1400,7 @@ cdma_automatic_activation_step (GTask *task)
|
||||
/* fall-through */
|
||||
|
||||
case CDMA_AUTOMATIC_ACTIVATION_STEP_UNLOCK:
|
||||
mm_obj_info (self, "activation step [1/4]: unlocking device");
|
||||
mm_obj_msg (self, "activation step [1/4]: unlocking device");
|
||||
mm_base_modem_at_command (MM_BASE_MODEM (self),
|
||||
"~NAMLCK=000000",
|
||||
20,
|
||||
@@ -1412,7 +1412,7 @@ cdma_automatic_activation_step (GTask *task)
|
||||
case CDMA_AUTOMATIC_ACTIVATION_STEP_CDV: {
|
||||
gchar *command;
|
||||
|
||||
mm_obj_info (self, "activation step [2/4]: requesting OTASP");
|
||||
mm_obj_msg (self, "activation step [2/4]: requesting OTASP");
|
||||
command = g_strdup_printf ("+CDV%s", ctx->carrier_code);
|
||||
mm_base_modem_at_command (MM_BASE_MODEM (self),
|
||||
command,
|
||||
@@ -1425,7 +1425,7 @@ cdma_automatic_activation_step (GTask *task)
|
||||
}
|
||||
|
||||
case CDMA_AUTOMATIC_ACTIVATION_STEP_CHECK:
|
||||
mm_obj_info (self, "activation step [3/4]: checking activation info");
|
||||
mm_obj_msg (self, "activation step [3/4]: checking activation info");
|
||||
mm_base_modem_at_command (MM_BASE_MODEM (self),
|
||||
"~NAMVAL?0",
|
||||
3,
|
||||
@@ -1435,7 +1435,7 @@ cdma_automatic_activation_step (GTask *task)
|
||||
return;
|
||||
|
||||
case CDMA_AUTOMATIC_ACTIVATION_STEP_LAST:
|
||||
mm_obj_info (self, "activation step [4/4]: activation process finished");
|
||||
mm_obj_msg (self, "activation step [4/4]: activation process finished");
|
||||
g_task_return_boolean (task, TRUE);
|
||||
g_object_unref (task);
|
||||
return;
|
||||
@@ -1532,7 +1532,7 @@ cdma_manual_activation_step (GTask *task)
|
||||
case CDMA_MANUAL_ACTIVATION_STEP_SPC: {
|
||||
gchar *command;
|
||||
|
||||
mm_obj_info (self, "activation step [1/5]: unlocking device");
|
||||
mm_obj_msg (self, "activation step [1/5]: unlocking device");
|
||||
command = g_strdup_printf ("~NAMLCK=%s",
|
||||
mm_cdma_manual_activation_properties_get_spc (ctx->properties));
|
||||
mm_base_modem_at_command (MM_BASE_MODEM (self),
|
||||
@@ -1548,7 +1548,7 @@ cdma_manual_activation_step (GTask *task)
|
||||
case CDMA_MANUAL_ACTIVATION_STEP_MDN_MIN: {
|
||||
gchar *command;
|
||||
|
||||
mm_obj_info (self, "activation step [2/5]: setting MDN/MIN/SID");
|
||||
mm_obj_msg (self, "activation step [2/5]: setting MDN/MIN/SID");
|
||||
command = g_strdup_printf ("~NAMVAL=0,%s,%s,%" G_GUINT16_FORMAT ",65535",
|
||||
mm_cdma_manual_activation_properties_get_mdn (ctx->properties),
|
||||
mm_cdma_manual_activation_properties_get_min (ctx->properties),
|
||||
@@ -1564,7 +1564,7 @@ cdma_manual_activation_step (GTask *task)
|
||||
}
|
||||
|
||||
case CDMA_MANUAL_ACTIVATION_STEP_OTASP:
|
||||
mm_obj_info (self, "activation step [3/5]: requesting OTASP");
|
||||
mm_obj_msg (self, "activation step [3/5]: requesting OTASP");
|
||||
mm_base_modem_at_command (MM_BASE_MODEM (self),
|
||||
"!IOTASTART",
|
||||
20,
|
||||
@@ -1574,7 +1574,7 @@ cdma_manual_activation_step (GTask *task)
|
||||
return;
|
||||
|
||||
case CDMA_MANUAL_ACTIVATION_STEP_CHECK:
|
||||
mm_obj_info (self, "activation step [4/5]: checking activation info");
|
||||
mm_obj_msg (self, "activation step [4/5]: checking activation info");
|
||||
mm_base_modem_at_command (MM_BASE_MODEM (self),
|
||||
"~NAMVAL?0",
|
||||
20,
|
||||
@@ -1584,7 +1584,7 @@ cdma_manual_activation_step (GTask *task)
|
||||
return;
|
||||
|
||||
case CDMA_MANUAL_ACTIVATION_STEP_LAST:
|
||||
mm_obj_info (self, "activation step [5/5]: activation process finished");
|
||||
mm_obj_msg (self, "activation step [5/5]: activation process finished");
|
||||
g_task_return_boolean (task, TRUE);
|
||||
g_object_unref (task);
|
||||
return;
|
||||
|
||||
@@ -472,7 +472,7 @@ telit_qss_unsolicited_handler (MMPortSerialAt *port,
|
||||
|
||||
if ((prev_qss_status == QSS_STATUS_SIM_REMOVED && cur_qss_status != QSS_STATUS_SIM_REMOVED) ||
|
||||
(prev_qss_status > QSS_STATUS_SIM_REMOVED && cur_qss_status == QSS_STATUS_SIM_REMOVED)) {
|
||||
mm_obj_info (self, "QSS handler: SIM swap detected");
|
||||
mm_obj_msg (self, "QSS handler: SIM swap detected");
|
||||
mm_iface_modem_process_sim_event (MM_IFACE_MODEM (self));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1107,7 +1107,7 @@ ublox_ciev_unsolicited_handler (MMPortSerialAt *port,
|
||||
return;
|
||||
}
|
||||
|
||||
mm_obj_info (self, "CIEV: sim hot swap detected '%d'", sim_insert_status);
|
||||
mm_obj_msg (self, "CIEV: sim hot swap detected '%d'", sim_insert_status);
|
||||
if (sim_insert_status == CIEV_SIM_STATUS_INSERTED ||
|
||||
sim_insert_status == CIEV_SIM_STATUS_REMOVED) {
|
||||
mm_iface_modem_process_sim_event (MM_IFACE_MODEM (self));
|
||||
@@ -1167,7 +1167,7 @@ process_cind_verbosity_response (MMBaseModem *self,
|
||||
return;
|
||||
}
|
||||
|
||||
mm_obj_info (self, "CIND unsolicited response codes processing verbosity configured successfully");
|
||||
mm_obj_dbg (self, "CIND unsolicited response codes processing verbosity configured successfully");
|
||||
|
||||
if (!mm_broadband_modem_sim_hot_swap_ports_context_init (MM_BROADBAND_MODEM (self), &error))
|
||||
mm_obj_warn (self, "failed to initialize SIM hot swap ports context: %s", error->message);
|
||||
|
||||
Reference in New Issue
Block a user