mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-01-13 09:11:06 +00:00
BUILD/DEBUG: hpack-tbl: fix format string in standalone debug code
In issue #1184, cppcheck reports that an incorrect format "%d" was used to print an unsigned in the debug code, though values are always very small and this will never be an issue.
This commit is contained in:
parent
2645b34341
commit
160e74bb9e
@ -111,7 +111,7 @@ void hpack_dht_dump(FILE *out, const struct hpack_dht *dht)
|
||||
|
||||
for (i = HPACK_SHT_SIZE; i < HPACK_SHT_SIZE + dht->used; i++) {
|
||||
slot = (hpack_get_dte(dht, i - HPACK_SHT_SIZE + 1) - dht->dte);
|
||||
fprintf(out, "idx=%d slot=%u name=<%s> value=<%s> addr=%u-%u\n",
|
||||
fprintf(out, "idx=%u slot=%u name=<%s> value=<%s> addr=%u-%u\n",
|
||||
i, slot,
|
||||
istpad(name, hpack_idx_to_name(dht, i)).ptr,
|
||||
istpad(value, hpack_idx_to_value(dht, i)).ptr,
|
||||
|
Loading…
Reference in New Issue
Block a user