summaryrefslogtreecommitdiffstats
path: root/sys/cam/cam_periph.c
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1998-09-29 09:18:08 +0000
committerbde <bde@FreeBSD.org>1998-09-29 09:18:08 +0000
commit02489e6f7f8f0f499bda58957dd3a4e89917dbe4 (patch)
treef427ec2da66eefaafc899c28b81b04b69c6e7cb1 /sys/cam/cam_periph.c
parentb2e75d324e849ab02801b9c5e4fe37b8d7ca469c (diff)
downloadFreeBSD-src-02489e6f7f8f0f499bda58957dd3a4e89917dbe4.zip
FreeBSD-src-02489e6f7f8f0f499bda58957dd3a4e89917dbe4.tar.gz
Fixed printf format errors. u_long is not necessarily suitable for casting
pointers to, and %d is not suitable for printing uint32_t's.
Diffstat (limited to 'sys/cam/cam_periph.c')
-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 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 <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).
OpenPOWER on IntegriCloud