mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-06 16:40:47 +00:00
ifconfig: Fix the display of capabilities in the netlink based code.
The capabilities in if_capabilities2/if_capenable2 are reported in the second 32b and were not being displayed correctly. v does not need to be advanced because v[i / 32] is the correct 32b value already. Sponsored by: Chelsio Communications Reviewed by: kib@ Differential Revision: https://reviews.freebsd.org/D41107
This commit is contained in:
parent
21e45c30c3
commit
47b1fef6fb
|
@ -89,8 +89,6 @@ print_bits(const char *btype, uint32_t *v, const int v_count,
|
|||
|
||||
for (int i = 0; i < v_count * 32; i++) {
|
||||
bool is_set = v[i / 32] & (1 << (i % 32));
|
||||
if (i == 31)
|
||||
v++;
|
||||
if (is_set) {
|
||||
if (num++ == 0)
|
||||
printf("<");
|
||||
|
|
Loading…
Reference in a new issue