Fix style(9) space and tab.
This commit is contained in:
parent
7452122499
commit
9add8139b7
@ -109,7 +109,7 @@ struct virtio_blk_hdr {
|
||||
#define VBH_OP_WRITE 1
|
||||
#define VBH_OP_FLUSH 4
|
||||
#define VBH_OP_FLUSH_OUT 5
|
||||
#define VBH_OP_IDENT 8
|
||||
#define VBH_OP_IDENT 8
|
||||
#define VBH_FLAG_BARRIER 0x80000000 /* OR'ed into vbh_type */
|
||||
uint32_t vbh_type;
|
||||
uint32_t vbh_ioprio;
|
||||
@ -151,7 +151,7 @@ static int pci_vtblk_cfgwrite(void *, int, int, uint32_t);
|
||||
static struct virtio_consts vtblk_vi_consts = {
|
||||
"vtblk", /* our name */
|
||||
1, /* we support 1 virtqueue */
|
||||
sizeof(struct vtblk_config), /* config reg size */
|
||||
sizeof(struct vtblk_config), /* config reg size */
|
||||
pci_vtblk_reset, /* reset */
|
||||
pci_vtblk_notify, /* device-wide qnotify */
|
||||
pci_vtblk_cfgread, /* read PCI config */
|
||||
@ -249,7 +249,7 @@ pci_vtblk_proc(struct pci_vtblk_softc *sc, struct vqueue_info *vq)
|
||||
}
|
||||
io->io_req.br_resid = iolen;
|
||||
|
||||
DPRINTF(("virtio-block: %s op, %zd bytes, %d segs, offset %ld\n\r",
|
||||
DPRINTF(("virtio-block: %s op, %zd bytes, %d segs, offset %ld\n\r",
|
||||
writeop ? "write" : "read/ident", iolen, i - 1,
|
||||
io->io_req.br_offset));
|
||||
|
||||
@ -309,7 +309,7 @@ pci_vtblk_init(struct vmctx *ctx, struct pci_devinst *pi, char *opts)
|
||||
*/
|
||||
snprintf(bident, sizeof(bident), "%d:%d", pi->pi_slot, pi->pi_func);
|
||||
bctxt = blockif_open(opts, bident);
|
||||
if (bctxt == NULL) {
|
||||
if (bctxt == NULL) {
|
||||
perror("Could not open backing file");
|
||||
return (1);
|
||||
}
|
||||
@ -343,7 +343,7 @@ pci_vtblk_init(struct vmctx *ctx, struct pci_devinst *pi, char *opts)
|
||||
*/
|
||||
MD5Init(&mdctx);
|
||||
MD5Update(&mdctx, opts, strlen(opts));
|
||||
MD5Final(digest, &mdctx);
|
||||
MD5Final(digest, &mdctx);
|
||||
sprintf(sc->vbsc_ident, "BHYVE-%02X%02X-%02X%02X-%02X%02X",
|
||||
digest[0], digest[1], digest[2], digest[3], digest[4], digest[5]);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user