diff options
author | Jan Kadlec <jan.kadlec@nic.cz> | 2013-04-11 13:53:17 +0200 |
---|---|---|
committer | Jan Kadlec <jan.kadlec@nic.cz> | 2013-04-11 13:53:17 +0200 |
commit | 33930efc7fe99454d2cc179598325f3f591e89ec (patch) | |
tree | 3db8306141e4eec59a5c0876ae7ed2ae51420e40 /src/libknot/tsig.c | |
parent | Fixed compilation warning in debug.c (diff) | |
download | knot-33930efc7fe99454d2cc179598325f3f591e89ec.tar.xz knot-33930efc7fe99454d2cc179598325f3f591e89ec.zip |
Fixed compilation warning in tsig.c.
- Added proper variable type to print function.
Diffstat (limited to 'src/libknot/tsig.c')
-rw-r--r-- | src/libknot/tsig.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/libknot/tsig.c b/src/libknot/tsig.c index 4cf335b86..3a1fd9f21 100644 --- a/src/libknot/tsig.c +++ b/src/libknot/tsig.c @@ -17,6 +17,7 @@ #include <string.h> #include <stdlib.h> #include <stdint.h> +#include <inttypes.h> #include <assert.h> #include <time.h> @@ -77,7 +78,8 @@ static uint8_t* tsig_rdata_seek(const knot_rrset_t *rr, tsig_off_t id, size_t nb /* Check if fixed part is readable. */ uint16_t lim = rrset_rdata_item_size(rr, 0); if (lim < TSIG_NAMELEN + 5 * sizeof(uint16_t)) { - dbg_tsig("TSIG: rdata: not enough items (has %u, min %lu).\n", + dbg_tsig("TSIG: rdata: not enough items " + "(has %"PRIu16", min %"PRIu16").\n", lim, TSIG_NAMELEN + 5 * sizeof(uint16_t)); return NULL; } @@ -227,7 +229,7 @@ int tsig_rdata_set_other_data(knot_rrset_t *tsig, uint16_t len, const uint8_t *other_data) { if (len > TSIG_OTHER_MAXLEN) { - dbg_tsig("TSIG: rdata: other len > %luB\n", TSIG_OTHER_MAXLEN); + dbg_tsig("TSIG: rdata: other len > %"PRIu16"B\n", TSIG_OTHER_MAXLEN); return KNOT_EINVAL; } |