Parent: 2994d0b2701c5b7462a168be439401433649c59d
Author: Brian Gix <brian.gix@intel.com>
Committer: Brian Gix <brian.gix@intel.com>
Date: 2021-01-28 01:05:13
Tree: b36ef2d86c5b339466e435cc9b81e141d380eaf2
tools/mgmt-tester: Fix formatter for size_t value On 32 bit systems, sizeof macro doesn't always return (unsigned long), and the %zu formatter specifically handles size_t. Fix following error: tools/mgmt-tester.c: In function ‘read_50_controller_cap_complete’: tools/mgmt-tester.c:9124:58: error: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘unsigned int’ [-Werror=format=] 9124 | tester_warn("Controller capabilities malformed, size %lu != %u", | ~~^ | | | long unsigned int | %u 9125 | sizeof(rp->cap_len) + rp->cap_len, length); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | unsigned int
Diffstat
| M | tools/mgmt-tester.c | | | 2 | +- |
1 files changed, 1 insertions(+), 1 deletions(-)