]> git.droids-corp.org - dpdk.git/blobdiff - examples/vm_power_manager/vm_power_cli.c
examples/power: change 64-bit masks to arrays
[dpdk.git] / examples / vm_power_manager / vm_power_cli.c
index d588d38aa572bd4e4f9549806656907cc029b2e4..101e67c9cfdb128dcc9fd5e3d13a5956d5619f2e 100644 (file)
@@ -128,7 +128,7 @@ struct cmd_set_pcpu_mask_result {
        cmdline_fixed_string_t set_pcpu_mask;
        cmdline_fixed_string_t vm_name;
        uint8_t vcpu;
-       uint64_t core_mask;
+       char core_mask[POWER_MGR_MAX_CPUS];
 };
 
 static void
@@ -139,10 +139,10 @@ cmd_set_pcpu_mask_parsed(void *parsed_result, struct cmdline *cl,
 
        if (set_pcpus_mask(res->vm_name, res->vcpu, res->core_mask) == 0)
                cmdline_printf(cl, "Pinned vCPU(%"PRId8") to pCPU core "
-                               "mask(0x%"PRIx64")\n", res->vcpu, res->core_mask);
+                               "\n", res->vcpu);
        else
                cmdline_printf(cl, "Unable to pin vCPU(%"PRId8") to pCPU core "
-                               "mask(0x%"PRIx64")\n", res->vcpu, res->core_mask);
+                               "\n", res->vcpu);
 }
 
 cmdline_parse_token_string_t cmd_set_pcpu_mask =