CLEANUP: qpack: fix format string in debugging code (int signedness)
In issue #1939, Ilya mentions that cppchecks warned about use of "%d" to report the QPACK table's index that's locally stored as an unsigned int. While technically valid, this will never cause any trouble since indexes are always small positive values, but better use %u anyway to silence this warning.
This commit is contained in:
parent
d05aa38950
commit
f87bb23acb
|
@ -154,7 +154,7 @@ void qpack_dht_dump(FILE *out, const struct qpack_dht *dht)
|
||||||
|
|
||||||
for (i = HPACK_SHT_SIZE; i < HPACK_SHT_SIZE + dht->used; i++) {
|
for (i = HPACK_SHT_SIZE; i < HPACK_SHT_SIZE + dht->used; i++) {
|
||||||
slot = (qpack_get_dte(dht, i - HPACK_SHT_SIZE + 1) - dht->dte);
|
slot = (qpack_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,
|
i, slot,
|
||||||
istpad(name, qpack_idx_to_name(dht, i)).ptr,
|
istpad(name, qpack_idx_to_name(dht, i)).ptr,
|
||||||
istpad(value, qpack_idx_to_value(dht, i)).ptr,
|
istpad(value, qpack_idx_to_value(dht, i)).ptr,
|
||||||
|
|
Loading…
Reference in New Issue