aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2022-08-05 14:40:24 +0200
committerAleksander Morgado <aleksandermj@chromium.org>2022-11-04 13:12:56 +0000
commitb3f315ad2db5455156781f1cfc22ecfb46bc389e (patch)
tree45882a3b24f6b65108337f76256f4eed51b3c660 /plugins
parent823f3e7995a27d89524f07aee46c8efad246fbc7 (diff)
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.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/cinterion/mm-broadband-modem-cinterion.c8
-rw-r--r--plugins/novatel/mm-broadband-modem-novatel.c10
-rw-r--r--plugins/sierra/mm-broadband-modem-sierra.c18
-rw-r--r--plugins/telit/mm-broadband-modem-telit.c2
-rw-r--r--plugins/ublox/mm-broadband-modem-ublox.c4
5 files changed, 21 insertions, 21 deletions
diff --git a/plugins/cinterion/mm-broadband-modem-cinterion.c b/plugins/cinterion/mm-broadband-modem-cinterion.c
index 90791355..b063d454 100644
--- a/plugins/cinterion/mm-broadband-modem-cinterion.c
+++ b/plugins/cinterion/mm-broadband-modem-cinterion.c
@@ -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 ();
diff --git a/plugins/novatel/mm-broadband-modem-novatel.c b/plugins/novatel/mm-broadband-modem-novatel.c
index 46bf438a..cd8e5676 100644
--- a/plugins/novatel/mm-broadband-modem-novatel.c
+++ b/plugins/novatel/mm-broadband-modem-novatel.c
@@ -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;
diff --git a/plugins/sierra/mm-broadband-modem-sierra.c b/plugins/sierra/mm-broadband-modem-sierra.c
index bae8e344..83611f6d 100644
--- a/plugins/sierra/mm-broadband-modem-sierra.c
+++ b/plugins/sierra/mm-broadband-modem-sierra.c
@@ -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;
diff --git a/plugins/telit/mm-broadband-modem-telit.c b/plugins/telit/mm-broadband-modem-telit.c
index 3254eef2..1683d38a 100644
--- a/plugins/telit/mm-broadband-modem-telit.c
+++ b/plugins/telit/mm-broadband-modem-telit.c
@@ -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));
}
}
diff --git a/plugins/ublox/mm-broadband-modem-ublox.c b/plugins/ublox/mm-broadband-modem-ublox.c
index e070b750..12be08c3 100644
--- a/plugins/ublox/mm-broadband-modem-ublox.c
+++ b/plugins/ublox/mm-broadband-modem-ublox.c
@@ -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);