X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=lib%2Flibrte_eal%2Fcommon%2Feal_common_memory.c;h=e015235898b0e3b9194fcef45bb23263443f1103;hb=591a9d7985c1230652d9f7ea1f9221e8c66ec188;hp=139b379ea85b2b8ebd71f9fcd0ebbd711867cd4b;hpb=c738c6a644e5a07fa98ede668775c08ec5321273;p=dpdk.git diff --git a/lib/librte_eal/common/eal_common_memory.c b/lib/librte_eal/common/eal_common_memory.c index 139b379ea8..e015235898 100644 --- a/lib/librte_eal/common/eal_common_memory.c +++ b/lib/librte_eal/common/eal_common_memory.c @@ -82,7 +82,7 @@ rte_eal_get_physmem_size(void) /* Dump the physical memory layout on console */ void -rte_dump_physmem_layout(void) +rte_dump_physmem_layout(FILE *f) { const struct rte_mem_config *mcfg; unsigned i = 0; @@ -94,7 +94,7 @@ rte_dump_physmem_layout(void) if (mcfg->memseg[i].addr == NULL) break; - printf("Segment %u: phys:0x%"PRIx64", len:%zu, " + fprintf(f, "Segment %u: phys:0x%"PRIx64", len:%zu, " "virt:%p, socket_id:%"PRId32", " "hugepage_sz:%zu, nchannel:%"PRIx32", " "nrank:%"PRIx32"\n", i,