core: add info logs to show main state machine start/stop points

This commit is contained in:
Aleksander Morgado
2012-10-25 16:19:24 +02:00
parent 6d4a4d647c
commit e499d32ef1
2 changed files with 9 additions and 0 deletions
+7
View File
@@ -6953,6 +6953,7 @@ disabling_step (DisablingContext *ctx)
switch (ctx->step) {
case DISABLING_STEP_FIRST:
mm_info ("Modem disabling...");
/* Fall down to next step */
ctx->step++;
@@ -7065,6 +7066,7 @@ disabling_step (DisablingContext *ctx)
ctx->step++;
case DISABLING_STEP_LAST:
mm_info ("Modem fully disabled...");
/* All disabled without errors! */
g_simple_async_result_set_op_res_gboolean (G_SIMPLE_ASYNC_RESULT (ctx->result), TRUE);
disabling_context_complete_and_free (ctx);
@@ -7262,6 +7264,7 @@ enabling_step (EnablingContext *ctx)
switch (ctx->step) {
case ENABLING_STEP_FIRST:
mm_info ("Modem enabling...");
/* Fall down to next step */
ctx->step++;
@@ -7374,6 +7377,7 @@ enabling_step (EnablingContext *ctx)
ctx->step++;
case ENABLING_STEP_LAST:
mm_info ("Modem fully enabled...");
/* All enabled without errors! */
g_simple_async_result_set_op_res_gboolean (G_SIMPLE_ASYNC_RESULT (ctx->result), TRUE);
enabling_context_complete_and_free (ctx);
@@ -7667,6 +7671,7 @@ initialize_step (InitializeContext *ctx)
switch (ctx->step) {
case INITIALIZE_STEP_FIRST:
mm_info ("Modem initializing...");
/* Fall down to next step */
ctx->step++;
@@ -7812,6 +7817,8 @@ initialize_step (InitializeContext *ctx)
return;
}
mm_info ("Modem fully initialized");
/* All initialized without errors!
* Set as disabled (a.k.a. initialized) */
mm_iface_modem_update_state (MM_IFACE_MODEM (ctx->self),
+2
View File
@@ -782,6 +782,8 @@ connect_auth_ready (MMBaseModem *self,
MM_IFACE_MODEM_STATE, &current,
NULL);
mm_info ("Simple connect started...");
if (current >= MM_MODEM_STATE_ENABLED)
ctx->step = CONNECTION_STEP_ENABLE + 1;
else if (current >= MM_MODEM_STATE_DISABLED)