aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans Petter Selasky <hselasky@FreeBSD.org>2019-10-02 12:02:14 +0000
committerHans Petter Selasky <hselasky@FreeBSD.org>2019-10-02 12:02:14 +0000
commit67a254a074df5e47857dc9d914078412f9a345d5 (patch)
tree97515070e80a8c20836ed6c735c56dbddc9bb82a
parent028af4ae670c3b7757a92a24d663a1d9fe065266 (diff)
downloadsrc-67a254a074df5e47857dc9d914078412f9a345d5.tar.gz
src-67a254a074df5e47857dc9d914078412f9a345d5.zip
Fix build failure for 32-bit platforms after r352991, due to
incorrect printf() formatter string. MFC after: 3 days Sponsored by: Mellanox Technologies
Notes
Notes: svn path=/head/; revision=353000
-rw-r--r--sys/dev/mlx5/mlx5_core/mlx5_main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/mlx5/mlx5_core/mlx5_main.c b/sys/dev/mlx5/mlx5_core/mlx5_main.c
index b6a1d6843277..3f8aabe7487f 100644
--- a/sys/dev/mlx5/mlx5_core/mlx5_main.c
+++ b/sys/dev/mlx5/mlx5_core/mlx5_main.c
@@ -692,8 +692,8 @@ static int wait_fw_init(struct mlx5_core_dev *dev, u32 max_wait_mili,
}
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);