From 02489e6f7f8f0f499bda58957dd3a4e89917dbe4 Mon Sep 17 00:00:00 2001 From: bde Date: Tue, 29 Sep 1998 09:18:08 +0000 Subject: Fixed printf format errors. u_long is not necessarily suitable for casting pointers to, and %d is not suitable for printing uint32_t's. --- sys/cam/cam_periph.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'sys/cam/cam_periph.c') diff --git a/sys/cam/cam_periph.c b/sys/cam/cam_periph.c index 3870eaa..e260f17 100644 --- a/sys/cam/cam_periph.c +++ b/sys/cam/cam_periph.c @@ -26,7 +26,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: cam_periph.c,v 1.1 1998/09/15 06:33:23 gibbs Exp $ + * $Id: cam_periph.c,v 1.2 1998/09/20 07:14:36 gibbs Exp $ */ #include @@ -553,9 +553,10 @@ cam_periph_mapmem(union ccb *ccb, struct cam_periph_map_info *mapinfo) flags = B_READ; if (useracc(*data_ptrs[i], lengths[i], B_READ) == 0){ printf("cam_periph_mapmem: error, " - "address %#lx, length %d isn't " + "address %p, length %lu isn't " "user accessible for READ\n", - (u_long)(*data_ptrs[i]), lengths[i]); + (void *)*data_ptrs[i], + (u_long)lengths[i]); /* * If we've already mapped one or more * buffers for this CCB, unmap it (them). @@ -577,9 +578,10 @@ cam_periph_mapmem(union ccb *ccb, struct cam_periph_map_info *mapinfo) flags |= B_WRITE; if (useracc(*data_ptrs[i], lengths[i], B_WRITE) == 0){ printf("cam_periph_mapmem: error, " - "address %#lx, length %d isn't " + "address %p, length %lu isn't " "user accessible for WRITE\n", - (u_long)(*data_ptrs[i]), lengths[i]); + (void *)*data_ptrs[i], + (u_long)lengths[i]); /* * If we've already mapped one or more * buffers for this CCB, unmap it (them). -- cgit v1.1