[PATCH 1/2] util: Fix Typos

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Nitesh Konkar <nitkon12@xxxxxxxxxxxxxxxxxx>
---
 src/util/vircgroup.c       | 4 ++--
 src/util/vircrypto.c       | 2 +-
 src/util/virdbus.c         | 2 +-
 src/util/virhostcpu.c      | 2 +-
 src/util/virhostdev.c      | 2 +-
 src/util/virrotatingfile.c | 2 +-
 src/util/virstoragefile.c  | 2 +-
 src/util/virstring.c       | 2 +-
 src/util/virtypedparam.c   | 2 +-
 src/util/virxml.c          | 2 +-
 10 files changed, 11 insertions(+), 11 deletions(-)

diff --git a/src/util/vircgroup.c b/src/util/vircgroup.c
index 24917e7..9232994 100644
--- a/src/util/vircgroup.c
+++ b/src/util/vircgroup.c
@@ -2778,7 +2778,7 @@ virCgroupGetCpusetMemoryMigrate(virCgroupPtr group, bool *migrate)
  * @group: The cgroup to set cpuset.cpus for
  * @cpus: the cpus to set
  *
- * Retuens: 0 on success
+ * Returns: 0 on success
  */
 int
 virCgroupSetCpusetCpus(virCgroupPtr group, const char *cpus)
@@ -2796,7 +2796,7 @@ virCgroupSetCpusetCpus(virCgroupPtr group, const char *cpus)
  * @group: The cgroup to get cpuset.cpus for
  * @cpus: the cpus to get
  *
- * Retuens: 0 on success
+ * Returns: 0 on success
  */
 int
 virCgroupGetCpusetCpus(virCgroupPtr group, char **cpus)
diff --git a/src/util/vircrypto.c b/src/util/vircrypto.c
index 03410a1..8748e1c 100644
--- a/src/util/vircrypto.c
+++ b/src/util/vircrypto.c
@@ -124,7 +124,7 @@ virCryptoHaveCipher(virCryptoCipher algorithm)
  *
  * Performs the AES gnutls encryption
  *
- * Same input as virCryptoEncryptData, except the algoritm is replaced
+ * Same input as virCryptoEncryptData, except the algorithm is replaced
  * by the specific gnutls algorithm.
  *
  * Encrypts the @data buffer using the @enckey and if available the @iv
diff --git a/src/util/virdbus.c b/src/util/virdbus.c
index 3f4dbe3..02edc56 100644
--- a/src/util/virdbus.c
+++ b/src/util/virdbus.c
@@ -1749,7 +1749,7 @@ int virDBusIsServiceEnabled(const char *name)
  * virDBusIsServiceRegistered
  * @name: service name
  *
- * Retruns 0 if service is registered, -1 on fatal error, or -2 if service is not registered
+ * Returns 0 if service is registered, -1 on fatal error, or -2 if service is not registered
  */
 int virDBusIsServiceRegistered(const char *name)
 {
diff --git a/src/util/virhostcpu.c b/src/util/virhostcpu.c
index f68176f..42a52ca 100644
--- a/src/util/virhostcpu.c
+++ b/src/util/virhostcpu.c
@@ -655,7 +655,7 @@ virHostCPUGetInfoPopulateLinux(FILE *cpuinfo,
      * subcores alone will be online on the host for a subcore in the
      * host. Even though the actual threads per core for P8 processor is 8,
      * depending on the subcores_per_core = 1, 2 or 4, the threads per
-     * subcore will vary accordingly to 8, 4 and 2 repectively.
+     * subcore will vary accordingly to 8, 4 and 2 respectively.
      * So, On host threads_per_core what is arrived at from sysfs in the
      * current logic is actually the subcores_per_core. Threads per subcore
      * can only be obtained from the kvm device. For example, on P8 wih 1
diff --git a/src/util/virhostdev.c b/src/util/virhostdev.c
index 9c2262e..c683875 100644
--- a/src/util/virhostdev.c
+++ b/src/util/virhostdev.c
@@ -737,7 +737,7 @@ virHostdevPreparePCIDevices(virHostdevManagerPtr mgr,
         virPCIDevicePtr actual;
 
         /* We need to look up the actual device because that's what
-         * virPCIDeviceReattach() exepects as its argument */
+         * virPCIDeviceReattach() expects as its argument */
         if (!(actual = virPCIDeviceListFind(mgr->inactivePCIHostdevs, pci)))
             continue;
 
diff --git a/src/util/virrotatingfile.c b/src/util/virrotatingfile.c
index 6654aff..9144729 100644
--- a/src/util/virrotatingfile.c
+++ b/src/util/virrotatingfile.c
@@ -512,7 +512,7 @@ virRotatingFileWriterAppend(virRotatingFileWriterPtr file,
  * If no file with a inode matching @inode currently
  * exists, then seeks to the start of the oldest
  * file, on the basis that the requested file has
- * probably been rotated out of existance
+ * probably been rotated out of existence
  */
 int
 virRotatingFileReaderSeek(virRotatingFileReaderPtr file,
diff --git a/src/util/virstoragefile.c b/src/util/virstoragefile.c
index 272db67..f6a1b5d 100644
--- a/src/util/virstoragefile.c
+++ b/src/util/virstoragefile.c
@@ -2022,7 +2022,7 @@ virStorageSourceCopy(const virStorageSource *src,
  * virStorageSourceInitChainElement:
  * @newelem: New backing chain element disk source
  * @old: Existing top level disk source
- * @transferLabels: Transfer security lables.
+ * @transferLabels: Transfer security labels.
  *
  * Transfers relevant information from the existing disk source to the new
  * backing chain element if they weren't supplied so that labelling info
diff --git a/src/util/virstring.c b/src/util/virstring.c
index 4a70620..f93d6b1 100644
--- a/src/util/virstring.c
+++ b/src/util/virstring.c
@@ -1027,7 +1027,7 @@ virStringStripControlChars(char *str)
  * Capitalize the string with replacement of all '-' characters for '_'
  * characters. Caller frees the result.
  *
- * Returns 0 if src is NULL, 1 if capitalization was successfull, -1 on failure.
+ * Returns 0 if src is NULL, 1 if capitalization was successful, -1 on failure.
  */
 int
 virStringToUpper(char **dst, const char *src)
diff --git a/src/util/virtypedparam.c b/src/util/virtypedparam.c
index 23109e1..3b49ec8 100644
--- a/src/util/virtypedparam.c
+++ b/src/util/virtypedparam.c
@@ -1364,7 +1364,7 @@ virTypedParamsRemoteFree(virTypedParameterRemotePtr remote_params_val,
  *    parameters for @params to hold, followed by an allocation of @params and
  *    a second call to the deserializer to actually retrieve the data.
  * 2) Newer APIs rely completely on the deserializer to allocate the right
- *    ammount of memory for @params to hold all the data obtained in
+ *    amount of memory for @params to hold all the data obtained in
  *    @remote_params.
  *
  * If used with model 1, two checks are performed, first one comparing the user
diff --git a/src/util/virxml.c b/src/util/virxml.c
index 1438edc..96c17fa 100644
--- a/src/util/virxml.c
+++ b/src/util/virxml.c
@@ -95,7 +95,7 @@ virXPathString(const char *xpath,
 /**
  * virXPathStringLimit:
  * @xpath: the XPath string to evaluate
- * @maxlen: maximum length permittred string
+ * @maxlen: maximum length permitted string
  * @ctxt: an XPath context
  *
  * Wrapper for virXPathString, which validates the length of the returned
-- 
2.1.0

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]
  Powered by Linux