]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
ionic: print firmware heartbeat as unsigned
authorShannon Nelson <shannon.nelson@amd.com>
Mon, 9 Jun 2025 21:46:42 +0000 (14:46 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 13 Jun 2025 09:31:06 +0000 (10:31 +0100)
The firmware heartbeat value is an unsigned number, and seeing
a negative number when it gets big is a little disconcerting.
Example:
    ionic 0000:24:00.0: FW heartbeat stalled at -1342169688

Print using the unsigned flag.

Signed-off-by: Shannon Nelson <shannon.nelson@amd.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Reviewed-by: Joe Damato <joe@dama.to>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/pensando/ionic/ionic_dev.c

index 18b9c8a810aecc763be42c3e7ef4164ccec0ddbe..093c5358b6e8bf3c40a277f75dcaa4018e5afa78 100644 (file)
@@ -424,9 +424,9 @@ do_check_time:
        if (fw_hb_ready != idev->fw_hb_ready) {
                idev->fw_hb_ready = fw_hb_ready;
                if (!fw_hb_ready)
-                       dev_info(ionic->dev, "FW heartbeat stalled at %d\n", fw_hb);
+                       dev_info(ionic->dev, "FW heartbeat stalled at %u\n", fw_hb);
                else
-                       dev_info(ionic->dev, "FW heartbeat restored at %d\n", fw_hb);
+                       dev_info(ionic->dev, "FW heartbeat restored at %u\n", fw_hb);
        }
 
        if (!fw_hb_ready)