mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-10 14:02:43 +00:00
Fix print formatting compile warnings for Sparc64 and PowerPC platforms.
Sponsored by: Mellanox Technologies MFC after: 2 weeks
This commit is contained in:
parent
03ab395e29
commit
3143f07779
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=290710
@ -604,7 +604,7 @@ static int mlx4_dev_cap(struct mlx4_dev *dev, struct mlx4_dev_cap *dev_cap)
|
||||
if (dev_cap->min_page_sz > PAGE_SIZE) {
|
||||
mlx4_err(dev, "HCA minimum page size of %d bigger than "
|
||||
"kernel PAGE_SIZE of %d, aborting.\n",
|
||||
dev_cap->min_page_sz, PAGE_SIZE);
|
||||
dev_cap->min_page_sz, (int)PAGE_SIZE);
|
||||
return -ENODEV;
|
||||
}
|
||||
if (dev_cap->num_ports > MLX4_MAX_PORTS) {
|
||||
@ -975,7 +975,7 @@ static int mlx4_slave_cap(struct mlx4_dev *dev)
|
||||
if (page_size > PAGE_SIZE) {
|
||||
mlx4_err(dev, "HCA minimum page size of %d bigger than "
|
||||
"kernel PAGE_SIZE of %d, aborting.\n",
|
||||
page_size, PAGE_SIZE);
|
||||
page_size, (int)PAGE_SIZE);
|
||||
return -ENODEV;
|
||||
}
|
||||
|
||||
@ -985,7 +985,7 @@ static int mlx4_slave_cap(struct mlx4_dev *dev)
|
||||
/* TODO: relax this assumption */
|
||||
if (dev->caps.uar_page_size != PAGE_SIZE) {
|
||||
mlx4_err(dev, "UAR size:%d != kernel PAGE_SIZE of %d\n",
|
||||
dev->caps.uar_page_size, PAGE_SIZE);
|
||||
dev->caps.uar_page_size, (int)PAGE_SIZE);
|
||||
return -ENODEV;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user