examples/vm_power: fix 32-bit build
authorFerruh Yigit <ferruh.yigit@intel.com>
Mon, 5 Oct 2020 17:02:01 +0000 (18:02 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 6 Oct 2020 07:49:29 +0000 (09:49 +0200)
commit984d99ccb09fd62b8c6151698a764af6f90592cb
treebe7310f8fc69dc3603d619a72bd1d1c253c2eebf
parent4b3f8119c77c57df70f0d01648c6970a0a861901
examples/vm_power: fix 32-bit build

Compiler version:
gcc 10.2.1 "cc (GCC) 10.2.1 20200723 (Red Hat 10.2.1-1)"

Build error:
../examples/vm_power_manager/guest_cli/vm_power_cli_guest.c:346:23:
 warning: format ‘%ld’ expects argument of type ‘long int’, but
argument 4 has type ‘uint64_t’ {aka ‘long long unsigned int’}
[-Wformat=]
  346 |    cmdline_printf(cl, "Capabilities of [%d] vcore are:"
      |                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
......
  349 |      pkt_caps_list.turbo[i],
      |      ~~~~~~~~~~~~~~~~~~~~~~
      |                         |
      |                         uint64_t {aka long long unsigned int}

Fixes: 07525d1a047a ("examples/vm_power: send capabilities request from guest")
Cc: stable@dpdk.org
Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>
Tested-by: David Marchand <david.marchand@redhat.com>
Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
examples/vm_power_manager/guest_cli/vm_power_cli_guest.c