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,
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;
}
* - 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, \
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;