update copyright date to 2013
[dpdk.git] / lib / librte_eal / common / eal_common_memory.c
index 448639e..e8371d7 100644 (file)
@@ -1,7 +1,7 @@
 /*-
  *   BSD LICENSE
  * 
- *   Copyright(c) 2010-2012 Intel Corporation. All rights reserved.
+ *   Copyright(c) 2010-2013 Intel Corporation. All rights reserved.
  *   All rights reserved.
  * 
  *   Redistribution and use in source and binary forms, with or without 
@@ -30,7 +30,6 @@
  *   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 
  *   OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  * 
- *  version: DPDK.L.1.2.3-3
  */
 
 #include <stdio.h>
@@ -44,6 +43,7 @@
 #include <rte_memzone.h>
 #include <rte_tailq.h>
 #include <rte_eal.h>
+#include <rte_eal_memconfig.h>
 #include <rte_log.h>
 
 #include "eal_private.h"
@@ -94,12 +94,18 @@ rte_dump_physmem_layout(void)
        for (i=0; i<RTE_MAX_MEMSEG; i++) {
                if (mcfg->memseg[i].addr == NULL)
                        break;
-               printf("phys:0x%"PRIx64", len:0x%"PRIx64", virt:%p, "
-                      "socket_id:%"PRId32"\n",
+
+               printf("Segment %u: phys:0x%"PRIx64", len:0x%"PRIx64", "
+                      "virt:%p, socket_id:%"PRId32", "
+                      "hugepage_sz:0x%"PRIx64", nchannel:%"PRIx32", "
+                      "nrank:%"PRIx32"\n", i,
                       mcfg->memseg[i].phys_addr,
                       mcfg->memseg[i].len,
                       mcfg->memseg[i].addr,
-                      mcfg->memseg[i].socket_id);
+                      mcfg->memseg[i].socket_id,
+                      mcfg->memseg[i].hugepage_sz,
+                      mcfg->memseg[i].nchannel,
+                      mcfg->memseg[i].nrank);
        }
 }