Date: Thu, 12 Nov 2015 09:56:25 +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: r290710 - head/sys/ofed/drivers/net/mlx4 Message-ID: <201511120956.tAC9uPIC070095@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: hselasky Date: Thu Nov 12 09:56:25 2015 New Revision: 290710 URL: https://svnweb.freebsd.org/changeset/base/290710 Log: Fix print formatting compile warnings for Sparc64 and PowerPC platforms. Sponsored by: Mellanox Technologies MFC after: 2 weeks Modified: head/sys/ofed/drivers/net/mlx4/main.c Modified: head/sys/ofed/drivers/net/mlx4/main.c ============================================================================== --- head/sys/ofed/drivers/net/mlx4/main.c Thu Nov 12 09:52:37 2015 (r290709) +++ head/sys/ofed/drivers/net/mlx4/main.c Thu Nov 12 09:56:25 2015 (r290710) @@ -604,7 +604,7 @@ static int mlx4_dev_cap(struct mlx4_dev 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_de 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_de /* 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; }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201511120956.tAC9uPIC070095>