svn commit: r347265 - head/sys/dev/mlx5/mlx5_core
Hans Petter Selasky
hselasky at FreeBSD.org
Wed May 8 10:36:33 UTC 2019
Author: hselasky
Date: Wed May 8 10:36:32 2019
New Revision: 347265
URL: https://svnweb.freebsd.org/changeset/base/347265
Log:
Ticks are integer type in FreeBSD.
MFC after: 3 days
Sponsored by: Mellanox Technologies
Modified:
head/sys/dev/mlx5/mlx5_core/mlx5_health.c
Modified: head/sys/dev/mlx5/mlx5_core/mlx5_health.c
==============================================================================
--- head/sys/dev/mlx5/mlx5_core/mlx5_health.c Wed May 8 10:35:55 2019 (r347264)
+++ head/sys/dev/mlx5/mlx5_core/mlx5_health.c Wed May 8 10:36:32 2019 (r347265)
@@ -255,7 +255,7 @@ mlx5_health_allow_reset(struct mlx5_core_dev *dev)
#define MLX5_NIC_STATE_POLL_MS 5
void mlx5_enter_error_state(struct mlx5_core_dev *dev, bool force)
{
- unsigned long end, delay_ms = MLX5_CRDUMP_WAIT_MS;
+ int end, delay_ms = MLX5_CRDUMP_WAIT_MS;
u32 fatal_error;
int lock = -EBUSY;
@@ -299,7 +299,7 @@ void mlx5_enter_error_state(struct mlx5_core_dev *dev,
} while (!time_after(jiffies, end));
if (!sensor_nic_disabled(dev)) {
- dev_err(&dev->pdev->dev, "NIC IFC still %d after %lums.\n",
+ dev_err(&dev->pdev->dev, "NIC IFC still %d after %ums.\n",
get_nic_mode(dev), delay_ms);
}
More information about the svn-src-all
mailing list