numatest: adding +1 to print the correct values
authorReto Achermann <reto.achermann@inf.ethz.ch>
Wed, 10 Jun 2015 11:59:46 +0000 (13:59 +0200)
committerReto Achermann <reto.achermann@inf.ethz.ch>
Wed, 10 Jun 2015 12:00:55 +0000 (14:00 +0200)
Signed-off-by: Reto Achermann <reto.achermann@inf.ethz.ch>

usr/tests/numa/numatest.c

index e9b7085..6da3903 100644 (file)
@@ -21,8 +21,8 @@ int main (void)
     debug_printf("numa test started...\n");
 
     if (numa_available() == SYS_ERR_OK) {
-        debug_printf("num nodes=%u\n", numa_max_node());
-        debug_printf("num cores: %u\n", numa_max_core());
+        debug_printf("num nodes=%u\n", numa_max_node() + 1);
+        debug_printf("num cores: %u\n", numa_max_core() + 1);
     } else {
         debug_printf("numa not available\n");
     }