From c6c4be9d699fb781d37ffd8c1db7898923a23301 Mon Sep 17 00:00:00 2001
From: Anagh G <quic_anaghg@quicinc.com>
Date: Wed, 5 Mar 2025 11:34:10 +0530
Subject: [PATCH] cli: Added bearer path print after successful modem connect

For a ModemManager simple connect using mmcli, added the bearer
path on which call is connected. This helps in determining the
bearer path to directly retrieve bearer information easily
of this particular call.

Signed-off-by: Anagh G <quic_anaghg@quicinc.com>
---
 cli/mmcli-modem-simple.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cli/mmcli-modem-simple.c b/cli/mmcli-modem-simple.c
index c4d37b5d2..b09cd0fae 100644
--- a/cli/mmcli-modem-simple.c
+++ b/cli/mmcli-modem-simple.c
@@ -144,7 +144,7 @@ connect_process_reply (MMBearer *result,
         exit (EXIT_FAILURE);
     }
 
-    g_print ("successfully connected the modem\n");
+    g_print ("successfully connected the modem at bearer %s\n", mm_bearer_get_path (result));
     g_object_unref (result);
 }
 
-- 
GitLab