diff options
author | Kozlov Dmitry <xeb@mail.ru> | 2012-09-09 11:15:45 +0400 |
---|---|---|
committer | Kozlov Dmitry <xeb@mail.ru> | 2012-09-09 11:15:45 +0400 |
commit | ddbe631bf8de6aea2615de0784d2a16509718fc8 (patch) | |
tree | 03e55a907614571050541042ce175e77d52a206e /accel-pppd/ctrl/l2tp/packet.c | |
parent | c516503e689b1df12ce562cfcb85be47a663b9da (diff) | |
download | accel-ppp-ddbe631bf8de6aea2615de0784d2a16509718fc8.tar.gz accel-ppp-ddbe631bf8de6aea2615de0784d2a16509718fc8.zip |
l2tp: print tid and sid as unsigned
Diffstat (limited to 'accel-pppd/ctrl/l2tp/packet.c')
-rw-r--r-- | accel-pppd/ctrl/l2tp/packet.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/accel-pppd/ctrl/l2tp/packet.c b/accel-pppd/ctrl/l2tp/packet.c index 70d8d5d..c9765ad 100644 --- a/accel-pppd/ctrl/l2tp/packet.c +++ b/accel-pppd/ctrl/l2tp/packet.c @@ -25,11 +25,11 @@ void l2tp_packet_print(struct l2tp_packet_t *pack, void (*print)(const char *fmt struct l2tp_dict_value_t *val; if (pack->hdr.ver == 2) { - print("[L2TP tid=%i sid=%i", ntohs(pack->hdr.tid), ntohs(pack->hdr.sid)); - log_ppp_debug(" Ns=%i Nr=%i", ntohs(pack->hdr.Ns), ntohs(pack->hdr.Nr)); + print("[L2TP tid=%u sid=%u", ntohs(pack->hdr.tid), ntohs(pack->hdr.sid)); + log_ppp_debug(" Ns=%u Nr=%u", ntohs(pack->hdr.Ns), ntohs(pack->hdr.Nr)); } else { print("[L2TP cid=%u", pack->hdr.cid); - log_ppp_debug(" Ns=%i Nr=%i", ntohs(pack->hdr.Ns), ntohs(pack->hdr.Nr)); + log_ppp_debug(" Ns=%u Nr=%u", ntohs(pack->hdr.Ns), ntohs(pack->hdr.Nr)); } list_for_each_entry(attr, &pack->attrs, entry) { |