modemmanager: extend log message with count on boot
authorFlorian Eckert <fe@dev.tdt.de>
Wed, 2 Oct 2024 14:39:12 +0000 (16:39 +0200)
committerRobert Marko <robimarko@gmail.com>
Thu, 17 Oct 2024 16:29:16 +0000 (18:29 +0200)
This makes debugging at system startup easier and shows how long we are
waiting for the ModemManager to start.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
net/modemmanager/files/usr/sbin/ModemManager-monitor

index 8a88ab514b54c00d08774c4872a22cac1f59ee5f..44fdab5949bc7974b7a61f5ffe71da2caaefdbd4 100644 (file)
@@ -127,7 +127,7 @@ main() {
                mm_log "info" "Checking if ModemManager is available..."
 
                if ! /usr/bin/mmcli -L >/dev/null 2>&1; then
-                       mm_log "info" "ModemManager not yet available"
+                       mm_log "info" "ModemManager not yet available (count=${n})"
                else
                        mmrunning=1
                        break