lib: fix log typos
authorKevin Traynor <ktraynor@redhat.com>
Wed, 13 Nov 2019 16:10:14 +0000 (16:10 +0000)
committerDavid Marchand <david.marchand@redhat.com>
Tue, 19 Nov 2019 21:03:27 +0000 (22:03 +0100)
Fix these as they are user visible. Found with codespell.

Fixes: bacaa2754017 ("eal: add channel for multi-process communication")
Fixes: f05e26051c15 ("eal: add IPC asynchronous request")
Fixes: 0cbce3a167f1 ("vfio: skip DMA map failure if already mapped")
Fixes: 445c6528b55f ("power: common interface for guest and host")
Fixes: e6c6dc0f96c8 ("power: add p-state driver compatibility")
Fixes: 8f972312b8f4 ("vhost: support vhost-user")
Cc: stable@dpdk.org
Signed-off-by: Kevin Traynor <ktraynor@redhat.com>
Reviewed-by: David Marchand <david.marchand@redhat.com>
lib/librte_eal/common/eal_common_proc.c
lib/librte_eal/linux/eal/eal_vfio.c
lib/librte_power/power_acpi_cpufreq.c
lib/librte_power/power_pstate_cpufreq.c
lib/librte_vhost/socket.c

index cbe8d10..935e8fe 100644 (file)
@@ -283,7 +283,7 @@ read_msg(struct mp_msg_internal *m, struct sockaddr_un *s)
        }
 
        if (msglen != buflen || (msgh.msg_flags & (MSG_TRUNC | MSG_CTRUNC))) {
-               RTE_LOG(ERR, EAL, "truncted msg\n");
+               RTE_LOG(ERR, EAL, "truncated msg\n");
                return -1;
        }
 
@@ -1071,7 +1071,7 @@ rte_mp_request_async(struct rte_mp_msg *req, const struct timespec *ts,
        }
 
        if (gettimeofday(&now, NULL) < 0) {
-               RTE_LOG(ERR, EAL, "Faile to get current time\n");
+               RTE_LOG(ERR, EAL, "Failed to get current time\n");
                rte_errno = errno;
                return -1;
        }
index 28e10cd..95f615c 100644 (file)
@@ -1294,7 +1294,7 @@ vfio_type1_dma_mem_map(int vfio_container_fd, uint64_t vaddr, uint64_t iova,
                         */
                        if (errno == EEXIST) {
                                RTE_LOG(DEBUG, EAL,
-                                       " Memory segment is allready mapped,"
+                                       " Memory segment is already mapped,"
                                        " skipping");
                        } else {
                                RTE_LOG(ERR, EAL,
@@ -1379,7 +1379,7 @@ vfio_spapr_dma_do_map(int vfio_container_fd, uint64_t vaddr, uint64_t iova,
                         */
                        if (errno == EBUSY) {
                                RTE_LOG(DEBUG, EAL,
-                                       " Memory segment is allready mapped,"
+                                       " Memory segment is already mapped,"
                                        " skipping");
                        } else {
                                RTE_LOG(ERR, EAL,
index 7c386f8..2298924 100644 (file)
@@ -30,7 +30,7 @@
 
 #define FOPEN_OR_ERR_RET(f, retval) do { \
                if ((f) == NULL) { \
-                       RTE_LOG(ERR, POWER, "File not openned\n"); \
+                       RTE_LOG(ERR, POWER, "File not opened\n"); \
                        return retval; \
                } \
 } while (0)
@@ -109,7 +109,7 @@ set_freq_internal(struct rte_power_info *pi, uint32_t idx)
        if (idx == pi->curr_idx)
                return 0;
 
-       POWER_DEBUG_TRACE("Freqency[%u] %u to be set for lcore %u\n",
+       POWER_DEBUG_TRACE("Frequency[%u] %u to be set for lcore %u\n",
                        idx, pi->freqs[idx], pi->lcore_id);
        if (fseek(pi->f, 0, SEEK_SET) < 0) {
                RTE_LOG(ERR, POWER, "Fail to set file position indicator to 0 "
index ecbcb3a..8f095e0 100644 (file)
@@ -33,7 +33,7 @@
 
 #define FOPEN_OR_ERR_RET(f, retval) do { \
                if ((f) == NULL) { \
-                       RTE_LOG(ERR, POWER, "File not openned\n"); \
+                       RTE_LOG(ERR, POWER, "File not opened\n"); \
                        return retval; \
                } \
 } while (0)
@@ -287,7 +287,7 @@ set_freq_internal(struct pstate_power_info *pi, uint32_t idx)
                        return -1;
                }
 
-               POWER_DEBUG_TRACE("Freqency '%u' to be set for lcore %u\n",
+               POWER_DEBUG_TRACE("Frequency '%u' to be set for lcore %u\n",
                                  target_freq, pi->lcore_id);
 
                fflush(pi->f_cur_min);
@@ -310,7 +310,7 @@ set_freq_internal(struct pstate_power_info *pi, uint32_t idx)
                        return -1;
                }
 
-               POWER_DEBUG_TRACE("Freqency '%u' to be set for lcore %u\n",
+               POWER_DEBUG_TRACE("Frequency '%u' to be set for lcore %u\n",
                                  target_freq, pi->lcore_id);
 
                fflush(pi->f_cur_max);
index a34bc7f..ebb2ff6 100644 (file)
@@ -132,7 +132,7 @@ read_fd_message(int sockfd, char *buf, int buflen, int *fds, int max_fds,
        }
 
        if (msgh.msg_flags & (MSG_TRUNC | MSG_CTRUNC)) {
-               RTE_LOG(ERR, VHOST_CONFIG, "truncted msg\n");
+               RTE_LOG(ERR, VHOST_CONFIG, "truncated msg\n");
                return -1;
        }