examples/vm_power: fix type of cmdline token in cli
authorBruce Richardson <bruce.richardson@intel.com>
Tue, 22 Oct 2019 15:43:09 +0000 (16:43 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Sun, 27 Oct 2019 16:25:38 +0000 (17:25 +0100)
commit99dc01446e62361d8d0046c2e007bba86cb8ec30
tree484cbd8b14176d87ce787bb7fbc19c1b7770d027
parent32c97c80f2e383269de340efa2b622f24131aa82
examples/vm_power: fix type of cmdline token in cli

Building the example with clang gives the error:

  error: expression which evaluates to zero treated as a null pointer
  constant of type 'const char *' [-Werror,-Wnon-literal-null-conversion]
                        lcore_id, UINT8);
                                  ^~~~~

This error is due to the wrong data type being given for the
cmd_set_cpu_freq_core_num value - it was specified as string rather than
numeric type.

Fixes: f5e5c3347ae3 ("examples/vm_power: cli in guest")
Cc: stable@dpdk.org
Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Acked-by: David Hunt <david.hunt@intel.com>
examples/vm_power_manager/guest_cli/vm_power_cli_guest.c