svn commit: r336162 - head/usr.sbin/bhyve
Marcelo Araujo
araujo at FreeBSD.org
Tue Jul 10 05:36:34 UTC 2018
Author: araujo
Date: Tue Jul 10 05:36:32 2018
New Revision: 336162
URL: https://svnweb.freebsd.org/changeset/base/336162
Log:
Fix style(9) space and tab.
Modified:
head/usr.sbin/bhyve/pci_virtio_block.c
Modified: head/usr.sbin/bhyve/pci_virtio_block.c
==============================================================================
--- head/usr.sbin/bhyve/pci_virtio_block.c Tue Jul 10 04:26:32 2018 (r336161)
+++ head/usr.sbin/bhyve/pci_virtio_block.c Tue Jul 10 05:36:32 2018 (r336162)
@@ -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
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 vque
}
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 *
*/
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 *
*/
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]);
More information about the svn-src-all
mailing list