mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-28 16:43:09 +00:00
Fix a printf() format error on 64 bits architectures.
Also fix some style bugs on the same line.
This commit is contained in:
parent
6327ab9cd1
commit
f368af933d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=103275
@ -97,6 +97,7 @@
|
||||
#include <sys/namei.h>
|
||||
#include <sys/conf.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/stdint.h>
|
||||
#include <sys/sysctl.h>
|
||||
#include <sys/disk.h>
|
||||
#include <sys/devicestat.h>
|
||||
@ -1176,9 +1177,9 @@ ccdiodone(struct bio *ibp)
|
||||
bp->bio_error = cbp->cb_buf.bio_error ?
|
||||
cbp->cb_buf.bio_error : EIO;
|
||||
}
|
||||
printf("ccd%d: error %d on component %d block %d (ccd block %lld)%s\n",
|
||||
unit, bp->bio_error, cbp->cb_comp,
|
||||
(int)cbp->cb_buf.bio_blkno, bp->bio_blkno, msg);
|
||||
printf("ccd%d: error %d on component %d block %d "
|
||||
"(ccd block %jd)%s\n", unit, bp->bio_error, cbp->cb_comp,
|
||||
(int)cbp->cb_buf.bio_blkno, (intmax_t)bp->bio_blkno, msg);
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -97,6 +97,7 @@
|
||||
#include <sys/namei.h>
|
||||
#include <sys/conf.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/stdint.h>
|
||||
#include <sys/sysctl.h>
|
||||
#include <sys/disk.h>
|
||||
#include <sys/devicestat.h>
|
||||
@ -1176,9 +1177,9 @@ ccdiodone(struct bio *ibp)
|
||||
bp->bio_error = cbp->cb_buf.bio_error ?
|
||||
cbp->cb_buf.bio_error : EIO;
|
||||
}
|
||||
printf("ccd%d: error %d on component %d block %d (ccd block %lld)%s\n",
|
||||
unit, bp->bio_error, cbp->cb_comp,
|
||||
(int)cbp->cb_buf.bio_blkno, bp->bio_blkno, msg);
|
||||
printf("ccd%d: error %d on component %d block %d "
|
||||
"(ccd block %jd)%s\n", unit, bp->bio_error, cbp->cb_comp,
|
||||
(int)cbp->cb_buf.bio_blkno, (intmax_t)bp->bio_blkno, msg);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user