/*
* Since virt-login-shell will be setuid, we must do everything
* we can to avoid linking to other libraries. Many of them do
- * unsafe things in functions marked __atttribute__((constructor)).
+ * unsafe things in functions marked __attribute__((constructor)).
* The only way to avoid such deps is to re-compile the
* functions with the code in question disabled, and for that we
* must override the main config.h rules. Hence this file :-(
* virEventAddHandleFunc:
* @fd: file descriptor to listen on
* @event: bitset of events on which to fire the callback
- * @cb: the callback to be called when an event occurrs
+ * @cb: the callback to be called when an event occurs
* @opaque: user data to pass to the callback
* @ff: the callback invoked to free opaque data blob
*
/**
* @desc: Access node device
- * @message: Accesing node device requires authorization
+ * @message: Accessing node device requires authorization
* @anonymous: 1
*/
VIR_ACCESS_PERM_NODE_DEVICE_GETATTR,
/**
* @desc: Access storage volume
- * @message: Acceessing storage volume requires authorization
+ * @message: Accessing storage volume requires authorization
* @anonymous: 1
*/
VIR_ACCESS_PERM_STORAGE_VOL_GETATTR,
}
}
- /* If user didn't explicily specify boot priority,
+ /* If user didn't explicitly specify boot priority,
* just return the first usable disk */
if ((match == NULL) && (first_usable_disk_index >= 0))
return def->disks[first_usable_disk_index];
bus->maxSlot = 0;
break;
case VIR_DOMAIN_CONTROLLER_MODEL_PCIE_SWITCH_UPSTREAM_PORT:
- /* 32 slots, can only accept pcie-switch-downstrean-ports,
+ /* 32 slots, can only accept pcie-switch-downstream-ports,
* no hotplug
*/
bus->flags = VIR_PCI_CONNECT_TYPE_PCIE_SWITCH_DOWNSTREAM_PORT;
* pci-bridge, but we need one for the device's PCI address
* to make sense, it means the guest only has a PCIe topology
* configured so far, and we need to create a traditional PCI
- * topology to accomodate the new device.
+ * topology to accommodate the new device.
*/
needDMIToPCIBridge = true;
needPCIeToPCIBridge = true;
if (!virObjectEventDispatchMatchCallback(event, cb))
continue;
- /* Drop the lock whle dispatching, for sake of re-entrancy */
+ /* Drop the lock while dispatching, for sake of re-entrance */
virObjectUnlock(state);
event->dispatch(cb->conn, event, cb->cb, cb->opaque);
virObjectLock(state);
/* NB: Lack of a name means that this vHBA hasn't yet been created,
* which means our scsi_host cannot be using the vHBA. Furthermore,
* lack of a provided parent means libvirt is going to choose the
- * "best" fc_host capable adapter based on availabilty. That could
+ * "best" fc_host capable adapter based on availability. That could
* conflict with an existing scsi_host definition, but there's no
* way to know that now.
*/
/*
* NULL terminated list of supported URI schemes.
* - Single element { NULL } list indicates no supported schemes
- * - NULL list indicates wildcard supportnig all schemes
+ * - NULL list indicates wildcard supporting all schemes
*/
const char **uriSchemes;
virHypervisorDriverPtr hypervisorDriver;
This class holds one or more instances of WmiClassVersion because with the
Windows 2012 release, Microsoft introduced "v2" version of Msvm_* family of
classes that need different URI for making wsman requests and also have
- some additional/changed properties (though many of the properies are the
+ some additional/changed properties (though many of the properties are the
same as in "v1". Therefore, this class makes sure that C code is generated
- for each of them while avoiding name conflics, identifies common members,
+ for each of them while avoiding name conflicts, identifies common members,
and defined *_WmiInfo structs holding info about each version so the driver
code can make the right choices based on which Hyper-V host it's connected
to.
"""Prepares the class for code generation
Makes sure that "versioned" classes are sorted by version, identifies
- common properies and ensures that they are aligned by name and
+ common properties and ensures that they are aligned by name and
type in each version
"""
- # sort vesioned classes by version in case input file did not have them
+ # sort versioned classes by version in case input file did not have them
# in order
self.versions = sorted(self.versions, key=lambda cls: cls.version or "")
- # if there's more than one verion make sure first one has name suffixed
- # because we'll generate "common" memeber and will be the "base" name
+ # if there's more than one version make sure first one has name suffixed
+ # because we'll generate "common" member and will be the "base" name
if len(self.versions) > 1:
first = self.versions[0]
if first.version == None:
The *_Data structs are members of hypervObject data union. Each one has
corresponding *_TypeInfo that is used for wsman unserialization of
response XML into the *_Data structs. If there's a "common" member, it
- won't have corresponding *_TypeInfo becuase this is a special case only
+ won't have corresponding *_TypeInfo because this is a special case only
used to provide a common "view" of v1, v2 etc members
"""
if num_classes < 2:
return
- # count property occurences in all class versions
+ # count property occurrences in all class versions
for cls in self.versions:
for prop in cls.properties:
# consdered same if matches by name AND type
else:
property_info[key] = [prop, 1]
- # isolate those that are common for all and keep track of their postions
+ # isolate those that are common for all and keep track of their positions
pos = 0
for key in sorted(property_info):
info = property_info[key]
common[info[0].name] = [info[0], pos]
pos += 1
- # alter each versions's property list so that common members are first
+ # alter each version's property list so that common members are first
# and in the same order as in the common dictionary
total = len(common)
for cls in self.versions:
* in the @seclabels argument will be initialized to the empty
* string if the domain is not running under a security model.
*
- * Returns number of elemnets in @seclabels on success, -1 in case of failure.
+ * Returns number of elements in @seclabels on success, -1 in case of failure.
*/
int
virDomainGetSecurityLabelList(virDomainPtr domain,
* virDomainGetTime:
* @dom: a domain object
* @seconds: domain's time in seconds
- * @nseconds: the nanoscond part of @seconds
+ * @nseconds: the nanosecond part of @seconds
* @flags: extra flags; not used yet, so callers should always pass 0
*
* Extract information about guest time and store it into
* divisor. When not provided, QEMU may double the polling time until
* poll-max-ns is reached. When poll-shrink is 0 (zero) QEMU may reset
* the polling interval to 0 until it finds its "sweet spot". Setting
- * poll-grow too large may cause frequent fluctution of the time; however,
+ * poll-grow too large may cause frequent fluctuation of the time; however,
* this can be tempered by a high poll-shrink to reduce the polling
* interval. For example, a poll-grow of 3 will triple the polling time
* which could quickly exceed poll-max-ns; however, a poll-shrink of
/*
* Now that any potential VFBs are defined, update the build info with
- * the data of the primary display. Some day libxl might implicitely do
+ * the data of the primary display. Some day libxl might implicitly do
* so but as it does not right now, better be explicit.
*/
if (libxlMakeVideo(def, d_config) < 0)
goto confirm;
/* We don't require the destination to have P2P support
- * as it looks to be normal migration from the receiver perpective.
+ * as it looks to be normal migration from the receiver perspective.
*/
destflags = flags & ~(VIR_MIGRATE_PEER2PEER);
false, false)) == NULL)
goto error;
- /* Some machines have problematic NUMA toplogy causing
+ /* Some machines have problematic NUMA topology causing
* unexpected failures. We don't want to break the lxc
* driver in this scenario, so log errors & carry on
*/
if (rc == 0 && (virNetDevValidateConfig(binding->portdevname, NULL, ifindex) <= 0)) {
virResetLastError();
- /* interface changed/disppeared */
+ /* interface changed/disappeared */
techdriver->allTeardown(binding->portdevname);
rc = -1;
}
false, false)) == NULL)
goto no_memory;
- /* Some machines have problematic NUMA toplogy causing
+ /* Some machines have problematic NUMA topology causing
* unexpected failures. We don't want to break the QEMU
* driver in this scenario, so log errors & carry on
*/
* called after the monitor was entered.
*
* Returns 0 on success and -1 on error with a libvirt error reported. If an
- * error occured, changes which were already applied need to be rolled back by
+ * error occurred, changes which were already applied need to be rolled back by
* calling qemuBlockStorageSourceAttachRollback.
*/
int
true, true)) == NULL)
goto error;
- /* Some machines have problematic NUMA toplogy causing
+ /* Some machines have problematic NUMA topology causing
* unexpected failures. We don't want to break the QEMU
* driver in this scenario, so log errors & carry on
*/
* @vm: Domain object
*
* For any objects that may require an auth/secret setup, create a
- * qemuDomainSecretInfo and save it in the approriate place within
+ * qemuDomainSecretInfo and save it in the appropriate place within
* the private structures. This will be used by command line build
* code in order to pass the secret along to qemu in order to provide
* the necessary authentication data.
if (mem->source == VIR_DOMAIN_MEMORY_SOURCE_MEMFD &&
!virQEMUCapsGet(qemuCaps, QEMU_CAPS_OBJECT_MEMORY_MEMFD_HUGETLB)) {
virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
- _("hugepages is not support with memfd memory source"));
+ _("hugepages is not supported with memfd memory source"));
return -1;
}
src->encryption->format == VIR_STORAGE_ENCRYPTION_FORMAT_LUKS &&
!virQEMUCapsGet(qemuCaps, QEMU_CAPS_QCOW2_LUKS)) {
virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
- _("LUKS encrypted QCOW2 images are not suppored by this QEMU"));
+ _("LUKS encrypted QCOW2 images are not supported by this QEMU"));
return -1;
}
* QEMU keeps track of the polling time elapsed and may grow or shrink the
* its polling interval based upon its heuristic algorithm. It is possible
* that calculations determine that it has found a "sweet spot" and no
- * ajustments are made. The polling time value is not available.
+ * adjustments are made. The polling time value is not available.
*
* Returns 0 on success, -1 on failure with error set.
*/
/* internal snapshots + pflash based loader have the following problems:
* - if the variable store is raw, the snapshot fails
- * - alowing a qcow2 image as the varstore would make it eligible to receive
+ * - allowing a qcow2 image as the varstore would make it eligible to receive
* the vmstate dump, which would make it huge
* - offline snapshot would not snapshot the varstore at all
*
continue;
if (vcpu->online) {
- /* non-hotpluggable vcpus need to be clustered at the beggining,
+ /* non-hotpluggable vcpus need to be clustered at the beginning,
* thus we need to force vcpus to be hotpluggable when we find
* vcpus that are hotpluggable and online prior to the ones
* we are going to add */
* qemuMigrationSrcIsAllowedHostdev:
* @def: domain definition
*
- * Checks that @def does not contain any host devices unsupported accross
+ * Checks that @def does not contain any host devices unsupported across
* migrations. Returns true if the vm is allowed to migrate.
*/
static bool
cpuentries, ncpuentries,
info, maxvcpus) < 0) {
/* Fallback to the legacy algorithm. Hotplug paths will make sure that
- * the apropriate data is present */
+ * the appropriate data is present */
qemuMonitorCPUInfoClear(info, maxvcpus);
qemuMonitorGetCPUInfoLegacy(cpuentries, ncpuentries, info, maxvcpus);
}
int actionID;
/* Throughout here we try our best to carry on upon errors,
- since it's imporatant to get as much info as possible out
+ since it's important to get as much info as possible out
to the application */
if ((action = virJSONValueObjectGetString(data, "action")) == NULL) {
if (!virJSONValueIsArray(array)) {
virReportError(VIR_ERR_INTERNAL_ERROR, "%s",
- _("Malformed query-cmmand-line-options array"));
+ _("Malformed query-command-line-options array"));
goto cleanup;
}
if (!virJSONValueIsArray(data)) {
virReportError(VIR_ERR_INTERNAL_ERROR, "%s",
- _("Malformed query-cmmand-line-options parameters array"));
+ _("Malformed query-command-line-options parameters array"));
goto cleanup;
}
n = virJSONValueArraySize(data);
/**
* qemuProcessSetupPid:
*
- * This function sets resource properities (affinity, cgroups,
+ * This function sets resource properties (affinity, cgroups,
* scheduler) for any PID associated with a domain. It should be used
* to set up emulator PIDs as well as vCPU and I/O thread pids to
* ensure they are all handled the same way.
* @existstatus: pointer to int returning exit status of process
* @cmdret: pointer to int returning result of virCommandRun
*
- * Start the TPM emulator with approriate labels. Apply security
+ * Start the TPM emulator with appropriate labels. Apply security
* labels to files first.
* This function returns -1 on security setup error, 0 if all the
* setup was done properly. In case the virCommand failed to run
return 0;
}
- /* disallow RW acess to all paths in restricted and restriced_rw */
+ /* disallow RW access to all paths in restricted and restriced_rw */
if ((array_starts_with(path, restricted, nropaths) == 0 ||
array_starts_with(path, restricted_rw, nrwpaths) == 0))
return 1;
* name provided during create doesn't match the name read from
* virStorageBackendDiskReadPartitions.
*
- * For a device mapper device, device respresentation is dependant upon
+ * For a device mapper device, device representation is dependent upon
* device mapper configuration, but the general rule of thumb is that at
* creation if a device name ends with a number, then a partition separator
* "p" is added to the created name; otherwise, if the device name doesn't
false, false)) == NULL)
goto error;
- /* Some machines have problematic NUMA toplogy causing
+ /* Some machines have problematic NUMA topology causing
* unexpected failures. We don't want to break the QEMU
* driver in this scenario, so log errors & carry on
*/
* virDispose:
* @ptrptr: pointer to pointer for address of memory to be sanitized and freed
* @count: count of elements in the array to dispose
- * @elemet_size: size of one element
+ * @element_size: size of one element
* @countptr: pointer to the count variable to clear (may be NULL)
*
* Clear and release the chunk of memory in the pointer pointed to by 'prtptr'.
* @ptr: pointer holding address to be cleared and freed
* @count: count of elements in @ptr
*
- * Clear the memory of the array of elemets pointed to by 'ptr' of 'count'
+ * Clear the memory of the array of elements pointed to by 'ptr' of 'count'
* elements and free it. Update the pointer/count to NULL/0.
*
* This macro is safe to use on arguments with side effects.
* This function is the counterpart of virBitmapFormat. This function creates
* a bitmap, in which bits are set according to the content of @str.
*
- * The bitmap is expanded to accomodate all the bits.
+ * The bitmap is expanded to accommodate all the bits.
*
* @str is a comma separated string of fields N, which means a number of bit
* to set, and ^N, which means to unset the bit, and N-M for ranges of bits
/**
* virCgroupAllowAllDevices:
*
- * Allows the permissiong for all devices by setting lines similar
+ * Allows the permission for all devices by setting lines similar
* to these ones (obviously the 'm' permission is an example):
*
* 'b *:* m'
* adds that to the cgroup ACL
*
* Returns: 0 on success, 1 if path exists but is not a device or is not
- * accesible, or * -1 on error
+ * accessible, or * -1 on error
*/
int
virCgroupAllowDevicePath(virCgroupPtr group,
/* virCryptoEncryptData:
- * @algorithm: algoritm desired for encryption
+ * @algorithm: algorithm desired for encryption
* @enckey: encryption key
- * @enckeylen: encription key length
+ * @enckeylen: encryption key length
* @iv: initialization vector
* @ivlen: length of initialization vector
* @data: data to encrypt
return -1;
} else {
/* Since we have no dlopen(), but definition we have no
- * loadable modules on disk, so we can resaonably
+ * loadable modules on disk, so we can reasonably
* return '1' instead of an error.
*/
return 1;
* +-----------+ +-----+
*
* After the routing decision, when is it clear a packet is to be sent
- * via a particular NIC, it is sent to the root qdisc (queueing
+ * via a particular NIC, it is sent to the root qdisc (queuing
* discipline). In this case HTB (Hierarchical Token Bucket). It has
* only one direct child class (with id 1:1) which shapes the overall
* rate that is sent through the NIC. This class has at least one child
}
memset(&ifa, 0, sizeof(ifa));
- /* DAD is for IPv6 adresses only. */
+ /* DAD is for IPv6 addresses only. */
ifa.ifa_family = AF_INET6;
if (nlmsg_append(nlmsg, &ifa, sizeof(ifa), NLMSG_ALIGNTO) < 0) {
virReportError(VIR_ERR_INTERNAL_ERROR, "%s",
VIR_DEBUG("IFLA_PORT_REQUEST = %d", req);
if (req == PORT_REQUEST_DISASSOCIATE) {
- VIR_DEBUG("Set dissaccociated.");
+ VIR_DEBUG("Set disassociated.");
indicate = true;
}
}
/**
* virNetDevOpenvswitchInterfaceStats:
* @ifname: the name of the interface
- * @stats: the retreived domain interface stat
+ * @stats: the retrieved domain interface stat
*
* Retrieves the OVS interfaces stats
*
/**
* virRandomBits:
- * @nbits: Number of bits of randommess required
+ * @nbits: Number of bits of randomness required
*
* Generate an evenly distributed random number between [0,2^nbits), where
* @nbits must be in the range (0,64].
/* If no feature found in "/info/L3_MON/mon_features",
* some error happens */
virReportError(VIR_ERR_INTERNAL_ERROR, "%s",
- _("Get empty feature list from resctrl"));
+ _("Got empty feature list from resctrl"));
goto cleanup;
}
unsigned int debugLevel;
bool debug;
- /* Libvirt currently stores the following properities in virDomainDiskDef.
+ /* Libvirt currently stores the following properties in virDomainDiskDef.
* These instances are currently just copies from the parent definition and
* are not mapped back to the XML */
int iomode; /* enum virDomainDiskIo */
* @dest: destination buffer
* @src: source buffer
* @n: number of bytes to copy
- * @destbytes: number of bytes the destination can accomodate
+ * @destbytes: number of bytes the destination can accommodate
*
* Copies the first @n bytes of @src to @dest.
*
*
* @n must be a reasonable value, that is, it must not exceed either
* the length of @src or the size of @dest. For the latter constraint,
- * the fact that @dest needs to accomodate a NULL byte in addition to
+ * the fact that @dest needs to accommodate a NULL byte in addition to
* the bytes copied from @src must be taken into account.
*
* If you want to copy *all* of @src to @dest, use virStrcpy() or
*
* @dest: destination buffer
* @src: source buffer
- * @destbytes: number of bytes the destination can accomodate
+ * @destbytes: number of bytes the destination can accommodate
*
* Copies @src to @dest.
*
* assign a name to it and it defaults to vboxnet*, for e.g:
* vboxnet0, vboxnet1, etc. Also the UUID is assigned to it
* automatically depending on the mac address and thus both
- * these paramters are ignored here for now.
+ * these parameters are ignored here for now.
*
* If the vbox is in 2.x and the def->name not equal to vboxnet0,
* the function call will fail and the networkInterface set to
* defined by vbox_CAPI_v4_0.h.
*
* The vbox_common.c, it is used to generate common codes for all vbox
- * versions. Bacause the same member varible's offset in a vbox struct
+ * versions. Because the same member variable's offset in a vbox struct
* may change between different vbox versions. The vbox_common.c
- * shouldn't directly use struct's member varibles defined in
+ * shouldn't directly use struct's member variables defined in
* vbox_CAPI_v*.h. To make things safety, we include the
* vbox_common.h in vbox_common.c. In this case, we treat structs
* defined by vbox as a void*. The common codes don't concern about
goto cleanup;
}
- /* FIXME: Need to distiguish between active and inactive domains here */
+ /* FIXME: Need to distinguish between active and inactive domains here */
if (! present/* && ! startConnected*/)
goto ignore;
return -1;
}
- /* FIXME: Need to distiguish between active and inactive domains here */
+ /* FIXME: Need to distinguish between active and inactive domains here */
if (! present/* && ! startConnected*/)
return 0;
return -1;
}
- /* FIXME: Need to distiguish between active and inactive domains here */
+ /* FIXME: Need to distinguish between active and inactive domains here */
if (! present/* && ! startConnected*/)
return 0;
return -1;
}
- /* FIXME: Need to distiguish between active and inactive domains here */
+ /* FIXME: Need to distinguish between active and inactive domains here */
if (! present/* && ! startConnected*/)
return 0;
/* In this situation we have to restore domain on source. But the migration
* is already finished. */
if (!domain)
- VIR_WARN("Can't provide domain '%s' after successfull migration.", name);
+ VIR_WARN("Can't provide domain '%s' after successful migration.", name);
virDomainObjEndAPI(&dom);
return domain;
}
/* we fill only type and arch fields in vzLoadDomain for
* hvm type and also init for containers, so we can check that all
- * other paramenters are null and boot devices config is default */
+ * other parameters are null and boot devices config is default */
if (def->os.machine != NULL || def->os.bootmenu != 0 ||
def->os.kernel != NULL || def->os.initrd != NULL ||
* @hvm: true or 1 if domain is HVM
* @isAttach: create expression for device attach (1).
*
- * Convert the disk device part of the domain config into a S-expresssion in buf.
+ * Convert the disk device part of the domain config into a S-expression in buf.
*
* Returns 0 in case of success, -1 in case of error.
*/
* @def: the device config
* @buf: a buffer for the result S-expression
*
- * Convert a single PCI device part of the domain config into a S-expresssion in buf.
+ * Convert a single PCI device part of the domain config into a S-expression in buf.
*
* Returns 0 in case of success, -1 in case of error.
*/
* @buf: a buffer for the result S-expression
* @detach: create expression for device detach (1).
*
- * Convert a single PCI device part of the domain config into a S-expresssion in buf.
+ * Convert a single PCI device part of the domain config into a S-expression in buf.
*
* Returns 0 in case of success, -1 in case of error.
*/
* @def: the domain config
* @buf: a buffer for the result S-expression
*
- * Convert all PCI device parts of the domain config into a S-expresssion in buf.
+ * Convert all PCI device parts of the domain config into a S-expression in buf.
*
* Returns 0 in case of success, -1 in case of error.
*/
}
if (STRNEQ_NULLABLE(files[i].context, ctx)) {
virReportError(VIR_ERR_INTERNAL_ERROR,
- "File %s context '%s' did not match epected '%s'",
+ "File %s context '%s' did not match expected '%s'",
files[i].file, ctx, files[i].context);
VIR_FREE(ctx);
return -1;
actual = virBufferCurrentContent(&cmdbuf);
if (STRNEQ_NULLABLE(expected, actual)) {
- fprintf(stderr, "Unexected command execution\n");
+ fprintf(stderr, "Unexpected command execution\n");
virTestDifference(stderr, expected, actual);
goto cleanup;
}
actual = virBufferCurrentContent(&cmdbuf);
if (STRNEQ_NULLABLE(expected, actual)) {
- fprintf(stderr, "Unexected command execution\n");
+ fprintf(stderr, "Unexpected command execution\n");
virTestDifference(stderr, expected, actual);
goto cleanup;
}
actual = virBufferCurrentContent(&cmdbuf);
if (STRNEQ_NULLABLE(expected, actual)) {
- fprintf(stderr, "Unexected command execution\n");
+ fprintf(stderr, "Unexpected command execution\n");
virTestDifference(stderr, expected, actual);
goto cleanup;
}
actual = virBufferCurrentContent(&cmdbuf);
if (STRNEQ_NULLABLE(expected, actual)) {
- fprintf(stderr, "Unexected command execution\n");
+ fprintf(stderr, "Unexpected command execution\n");
virTestDifference(stderr, expected, actual);
goto cleanup;
}
actual = virBufferCurrentContent(&cmdbuf);
if (STRNEQ_NULLABLE(expected, actual)) {
- fprintf(stderr, "Unexected command execution\n");
+ fprintf(stderr, "Unexpected command execution\n");
virTestDifference(stderr, expected, actual);
goto cleanup;
}
actual = virBufferCurrentContent(&cmdbuf);
if (STRNEQ_NULLABLE(expected, actual)) {
- fprintf(stderr, "Unexected command execution\n");
+ fprintf(stderr, "Unexpected command execution\n");
virTestDifference(stderr, expected, actual);
goto cleanup;
}
actual = virBufferCurrentContent(&cmdbuf);
if (STRNEQ_NULLABLE(expected, actual)) {
- fprintf(stderr, "Unexected command execution\n");
+ fprintf(stderr, "Unexpected command execution\n");
virTestDifference(stderr, expected, actual);
goto cleanup;
}
actual = virBufferCurrentContent(&cmdbuf);
if (STRNEQ_NULLABLE(expected, actual)) {
- fprintf(stderr, "Unexected command execution\n");
+ fprintf(stderr, "Unexpected command execution\n");
virTestDifference(stderr, expected, actual);
goto cleanup;
}
actual = virBufferCurrentContent(&cmdbuf);
if (STRNEQ_NULLABLE(expected, actual)) {
- fprintf(stderr, "Unexected command execution\n");
+ fprintf(stderr, "Unexpected command execution\n");
virTestDifference(stderr, expected, actual);
goto cleanup;
}
}
if (STRNEQ_NULLABLE(expected, actual)) {
- fprintf(stderr, "Unexected command execution\n");
+ fprintf(stderr, "Unexpected command execution\n");
virTestDifference(stderr, expected, actual);
goto cleanup;
}
if (!(hash = virHashCreate(size, NULL)))
return NULL;
- /* entires are added in reverse order so that they will be linked in
+ /* entries are added in reverse order so that they will be linked in
* collision list in the same order as in the uuids array
*/
for (i = ARRAY_CARDINALITY(uuids) - 1; i >= 0; i--) {
* then lookup the same symbol name but with 'wrap_' prefixed
* on it, and call that.
*
- * The actual test suite should provide the implemention of
+ * The actual test suite should provide the implementation of
* the wrap_XXXX symbol, using the VIR_MOCK_WRAP_NNN_MMM
* macros.
*/
/* Okay, the following ifdef rain forest may look messy at a
* first glance. But here's the thing: during run time linking of
- * a binary, stat() may not be acutally needing symbol stat. It
+ * a binary, stat() may not be actually needing symbol stat. It
* might as well not had been stat() in the first place (see the
* reasoning at the beginning of this file). However, if we would
* expose stat symbol here, we will poison the well and trick
}
/* The connection is considered dead only if
- * virConnectIsAlive() successfuly says so.
+ * virConnectIsAlive() successfully says so.
*/
vshResetLibvirtError();
goto cleanup;
}
- table = vshTableNew(_("Id"), _("Transport"), _("Connected sice"), NULL);
+ table = vshTableNew(_("Id"), _("Transport"), _("Connected since"), NULL);
if (!table)
goto cleanup;
* @ctl virtshell control structure
*
* Print table returned in string to stdout.
- * If effect on vshControl structure on priting function changes in future
+ * If effect on vshControl structure on printing function changes in future
* (apart from quiet mode) this code may need update
*/
void