Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 2 Oct 2019 12:02:14 +0000 (UTC)
From:      Hans Petter Selasky <hselasky@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r353000 - head/sys/dev/mlx5/mlx5_core
Message-ID:  <201910021202.x92C2Edw098049@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201910021202.x92C2Edw098049>