svn commit: r353000 - head/sys/dev/mlx5/mlx5_core

Hans Petter Selasky hselasky at FreeBSD.org
Wed Oct 2 12:02:14 UTC 2019


Author: hselasky
Date: Wed Oct  2 12:02:14 2019
New Revision: 353000
URL: https://svnweb.freebsd.org/changeset/base/353000

Log:
  Fix build failure for 32-bit platforms after r352991, due to
  incorrect printf() formatter string.
  
  MFC after:	3 days
  Sponsored by:	Mellanox Technologies

Modified:
  head/sys/dev/mlx5/mlx5_core/mlx5_main.c

Modified: head/sys/dev/mlx5/mlx5_core/mlx5_main.c
==============================================================================
--- head/sys/dev/mlx5/mlx5_core/mlx5_main.c	Wed Oct  2 11:40:40 2019	(r352999)
+++ head/sys/dev/mlx5/mlx5_core/mlx5_main.c	Wed Oct  2 12:02:14 2019	(r353000)
@@ -692,8 +692,8 @@ static int wait_fw_init(struct mlx5_core_dev *dev, u32
 		}
 		if (warn_time_mili && time_after(jiffies, warn)) {
 			mlx5_core_warn(dev,
-			    "Waiting for FW initialization, timeout abort in %lu s\n",
-			    jiffies_to_msecs(end - warn) / 1000);
+			    "Waiting for FW initialization, timeout abort in %u s\n",
+			    (unsigned int)(jiffies_to_msecs(end - warn) / 1000));
 			warn = jiffies + msecs_to_jiffies(warn_time_mili);
 		}
 		msleep(FW_INIT_WAIT_MS);


More information about the svn-src-all mailing list