aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Evans <bde@FreeBSD.org>1998-09-29 09:18:08 +0000
committerBruce Evans <bde@FreeBSD.org>1998-09-29 09:18:08 +0000
commit2e8bf20912dbb43e22e7bfdfec060ae86fa943a5 (patch)
tree62a5bd9ba2e34b6d5cd15520f669fb562729ca01
parent894e2bd49eb19ac72745e576bba810e06f8e46dc (diff)
Notes
-rw-r--r--sys/cam/cam_periph.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/sys/cam/cam_periph.c b/sys/cam/cam_periph.c
index 3870eaa57e14..e260f17844a1 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 <sys/param.h>
@@ -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).