X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=lib%2Fdebug.c;fp=lib%2Fdebug.c;h=4d308461fe2c786e28b9ea54b3b0cbbb550329d0;hb=1e3a2613b356bf542fd75c198e9c9813e24f08d1;hp=25c7fd6e34ce2dbd2b2444038fb1dbe36513fb0b;hpb=49047aa9d70c81b91ebe2446a6e84e659f59506c;p=libradsec.git diff --git a/lib/debug.c b/lib/debug.c index 25c7fd6..4d30846 100644 --- a/lib/debug.c +++ b/lib/debug.c @@ -14,13 +14,13 @@ #include "debug.h" void -rs_dump_packet (const struct rs_packet *pkt) +rs_dump_message (const struct rs_message *msg) { const RADIUS_PACKET *p = NULL; - if (!pkt || !pkt->rpkt) + if (!msg || !msg->rpkt) return; - p = pkt->rpkt; + p = msg->rpkt; fprintf (stderr, "\tCode: %u, Identifier: %u, Lenght: %zu\n", p->code,