bhyve: Fix typos
Signed-off-by: Elyes Haouas <ehaouas@noos.fr> Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/653
This commit is contained in:
committed by
Warner Losh
parent
0939cf32c0
commit
0dc159ced7
@@ -422,7 +422,7 @@ basl_make_templates(void)
|
||||
|
||||
if (!err) {
|
||||
/*
|
||||
* len has been intialized (and maybe adjusted) above
|
||||
* len has been initialized (and maybe adjusted) above
|
||||
*/
|
||||
if ((len + sizeof(BHYVE_ASL_TEMPLATE) + 1 +
|
||||
sizeof(BHYVE_ASL_SUFFIX)) < MAXPATHLEN) {
|
||||
|
||||
@@ -1503,7 +1503,7 @@ main(int argc, char *argv[])
|
||||
}
|
||||
|
||||
/*
|
||||
* Exit if a device emulation finds an error in its initilization
|
||||
* Exit if a device emulation finds an error in its initialization
|
||||
*/
|
||||
if (init_pci(ctx) != 0) {
|
||||
perror("device emulation initialization error");
|
||||
|
||||
@@ -144,7 +144,7 @@ set_config_value_node(nvlist_t *parent, const char *name, const char *value)
|
||||
nvlist_free_string(parent, name);
|
||||
else if (nvlist_exists(parent, name))
|
||||
errx(4,
|
||||
"Attemping to add value %s to existing node %s of list %p",
|
||||
"Attempting to add value %s to existing node %s of list %p",
|
||||
value, name, parent);
|
||||
nvlist_add_string(parent, name, value);
|
||||
}
|
||||
|
||||
@@ -55,7 +55,7 @@ void netbe_rx_enable(net_backend_t *be);
|
||||
|
||||
/*
|
||||
* Network device capabilities taken from the VirtIO standard.
|
||||
* Despite the name, these capabilities can be used by different frontents
|
||||
* Despite the name, these capabilities can be used by different frontends
|
||||
* (virtio-net, ptnet) and supported by different backends (netmap, tap, ...).
|
||||
*/
|
||||
#define VIRTIO_NET_F_CSUM (1 << 0) /* host handles partial cksum */
|
||||
|
||||
@@ -1914,7 +1914,7 @@ nvme_opc_format_nvm(struct pci_nvme_softc* sc, struct nvme_command* command,
|
||||
return (1);
|
||||
}
|
||||
|
||||
/* Doesn't support Protection Infomation */
|
||||
/* Doesn't support Protection Information */
|
||||
pi = (command->cdw10 >> 5) & 0x7;
|
||||
if (pi != 0) {
|
||||
pci_nvme_status_genc(&compl->status, NVME_SC_INVALID_FIELD);
|
||||
@@ -2124,7 +2124,7 @@ pci_nvme_handle_admin_cmd(struct pci_nvme_softc* sc, uint64_t value)
|
||||
*
|
||||
* NVMe defines "data unit" as thousand's of 512 byte blocks and is rounded up.
|
||||
* E.g. 1 data unit is 1 - 1,000 512 byte blocks. 3 data units are 2,001 - 3,000
|
||||
* 512 byte blocks. Rounding up is acheived by initializing the remainder to 999.
|
||||
* 512 byte blocks. Rounding up is achieved by initializing the remainder to 999.
|
||||
*/
|
||||
static void
|
||||
pci_nvme_stats_write_read_update(struct pci_nvme_softc *sc, uint8_t opc,
|
||||
|
||||
@@ -787,7 +787,7 @@ pci_vtnet_snapshot(void *vsc, struct vm_snapshot_meta *meta)
|
||||
SNAPSHOT_VAR_OR_LEAVE(sc->vsc_features, meta, ret, done);
|
||||
SNAPSHOT_VAR_OR_LEAVE(sc->features_negotiated, meta, ret, done);
|
||||
|
||||
/* Force reapply negociated features at restore time */
|
||||
/* Force reapply negotiated features at restore time */
|
||||
if (meta->op == VM_SNAPSHOT_RESTORE &&
|
||||
sc->features_negotiated) {
|
||||
pci_vtnet_neg_features(sc, sc->vsc_features);
|
||||
|
||||
@@ -91,7 +91,7 @@ struct usb_hci {
|
||||
|
||||
/*
|
||||
* Each xfer block is mapped to the hci transfer block.
|
||||
* On input into the device handler, blen is set to the lenght of buf.
|
||||
* On input into the device handler, blen is set to the length of buf.
|
||||
* The device handler is to update blen to reflect on the residual size
|
||||
* of the buffer, i.e. len(buf) - len(consumed).
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user