svn commit: r228462 - head/share/examples/scsi_target
Alexander Motin
mav at FreeBSD.org
Tue Dec 13 11:13:28 UTC 2011
Author: mav
Date: Tue Dec 13 11:13:28 2011
New Revision: 228462
URL: http://svn.freebsd.org/changeset/base/228462
Log:
- Fix different variable types use in different files after r121184,
causing problems on amd64.
- s/%lud/%lu/.
MFC after: 1 month
Modified:
head/share/examples/scsi_target/scsi_cmds.c
Modified: head/share/examples/scsi_target/scsi_cmds.c
==============================================================================
--- head/share/examples/scsi_target/scsi_cmds.c Tue Dec 13 09:58:05 2011 (r228461)
+++ head/share/examples/scsi_target/scsi_cmds.c Tue Dec 13 11:13:28 2011 (r228462)
@@ -103,8 +103,8 @@ static struct targ_cdb_handlers cdb_hand
static struct scsi_inquiry_data inq_data;
static struct initiator_state istates[MAX_INITIATORS];
extern int debug;
-extern uint64_t volume_size;
-extern size_t sector_size;
+extern off_t volume_size;
+extern u_int sector_size;
extern size_t buf_size;
cam_status
@@ -609,7 +609,7 @@ start_io(struct ccb_accept_tio *atio, st
if (dir == CAM_DIR_IN) {
if (notaio) {
if (debug)
- warnx("read sync %lud @ block " OFF_FMT,
+ warnx("read sync %lu @ block " OFF_FMT,
(unsigned long)
(ctio->dxfer_len / sector_size),
c_descr->offset / sector_size);
@@ -625,7 +625,7 @@ start_io(struct ccb_accept_tio *atio, st
}
} else {
if (debug)
- warnx("read async %lud @ block " OFF_FMT,
+ warnx("read async %lu @ block " OFF_FMT,
(unsigned long)
(ctio->dxfer_len / sector_size),
c_descr->offset / sector_size);
@@ -725,7 +725,7 @@ tcmd_rdwr_done(struct ccb_accept_tio *at
a_descr->targ_req += ctio->dxfer_len;
if (notaio) {
if (debug)
- warnx("write sync %lud @ block "
+ warnx("write sync %lu @ block "
OFF_FMT, (unsigned long)
(ctio->dxfer_len / sector_size),
c_descr->offset / sector_size);
@@ -742,7 +742,7 @@ tcmd_rdwr_done(struct ccb_accept_tio *at
tcmd_rdwr_done(atio, ctio, AIO_DONE);
} else {
if (debug)
- warnx("write async %lud @ block "
+ warnx("write async %lu @ block "
OFF_FMT, (unsigned long)
(ctio->dxfer_len / sector_size),
c_descr->offset / sector_size);
More information about the svn-src-head
mailing list