Skip to content

Commit

Permalink
lib: fix log typos
Browse files Browse the repository at this point in the history
Fix these as they are user visible. Found with codespell.

Fixes: bacaa27 ("eal: add channel for multi-process communication")
Fixes: f05e260 ("eal: add IPC asynchronous request")
Fixes: 0cbce3a ("vfio: skip DMA map failure if already mapped")
Fixes: 445c652 ("power: common interface for guest and host")
Fixes: e6c6dc0 ("power: add p-state driver compatibility")
Fixes: 8f97231 ("vhost: support vhost-user")
Cc: stable@dpdk.org

Signed-off-by: Kevin Traynor <ktraynor@redhat.com>
Reviewed-by: David Marchand <david.marchand@redhat.com>
  • Loading branch information
kevintraynor authored and david-marchand committed Nov 19, 2019
1 parent 8980d7d commit 0411d61
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions lib/librte_eal/common/eal_common_proc.c
Expand Up @@ -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;
}

Expand Down Expand Up @@ -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;
}
Expand Down
4 changes: 2 additions & 2 deletions lib/librte_eal/linux/eal/eal_vfio.c
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down
4 changes: 2 additions & 2 deletions lib/librte_power/power_acpi_cpufreq.c
Expand Up @@ -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)
Expand Down Expand Up @@ -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 "
Expand Down
6 changes: 3 additions & 3 deletions lib/librte_power/power_pstate_cpufreq.c
Expand Up @@ -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)
Expand Down Expand Up @@ -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);
Expand All @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion lib/librte_vhost/socket.c
Expand Up @@ -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;
}

Expand Down

0 comments on commit 0411d61

Please sign in to comment.