lib: minor changes
Signed-off-by: Intel
This commit is contained in:
parent
77d7a99fbe
commit
c662f30dbe
@ -95,7 +95,7 @@ rte_dump_physmem_layout(void)
|
||||
if (mcfg->memseg[i].addr == NULL)
|
||||
break;
|
||||
|
||||
printf("Segment %o: phys:0x%"PRIx64", len:0x%"PRIx64", "
|
||||
printf("Segment %u: phys:0x%"PRIx64", len:0x%"PRIx64", "
|
||||
"virt:%p, socket_id:%"PRId32", "
|
||||
"hugepage_sz:0x%"PRIx64", nchannel:%"PRIx32", "
|
||||
"nrank:%"PRIx32"\n", i,
|
||||
|
@ -198,7 +198,9 @@ memzone_reserve_aligned_thread_unsafe(const char *name, uint64_t len,
|
||||
return memzone_reserve_aligned_thread_unsafe(name, len - align,
|
||||
socket_id, 0, align);
|
||||
|
||||
RTE_LOG(ERR, EAL, "%s(): No appropriate segment found\n", __func__);
|
||||
RTE_LOG(ERR, EAL, "%s(%s, %" PRIu64 ", %d): "
|
||||
"No appropriate segment found\n",
|
||||
__func__, name, requested_len, socket_id);
|
||||
rte_errno = ENOMEM;
|
||||
return NULL;
|
||||
}
|
||||
|
@ -276,7 +276,7 @@ int rte_vlog(uint32_t level, uint32_t logtype, const char *format, va_list ap);
|
||||
* - Negative on error.
|
||||
*/
|
||||
#define RTE_LOG(l, t, ...) \
|
||||
(((RTE_LOG_ ## l <= RTE_LOG_LEVEL) && \
|
||||
(void)(((RTE_LOG_ ## l <= RTE_LOG_LEVEL) && \
|
||||
(RTE_LOG_ ## l <= rte_logs.level) && \
|
||||
(RTE_LOGTYPE_ ## t & rte_logs.type)) ? \
|
||||
rte_log(RTE_LOG_ ## l, \
|
||||
|
@ -229,7 +229,7 @@ rte_pktmbuf_dump(const struct rte_mbuf *m, unsigned dump_len)
|
||||
|
||||
printf("dump mbuf at 0x%p, phys=%"PRIx64", buf_len=%u\n",
|
||||
m, (uint64_t)m->buf_physaddr, (unsigned)m->buf_len);
|
||||
printf(" pkt_len=%"PRIx32", ol_flags=%"PRIx16", nb_segs=%u, "
|
||||
printf(" pkt_len=%"PRIu32", ol_flags=%"PRIx16", nb_segs=%u, "
|
||||
"in_port=%u\n", m->pkt.pkt_len, m->ol_flags,
|
||||
(unsigned)m->pkt.nb_segs, (unsigned)m->pkt.in_port);
|
||||
nb_segs = m->pkt.nb_segs;
|
||||
|
Loading…
x
Reference in New Issue
Block a user