Merge remote-tracking branch 'origin/libradsec' into moonshot
[radsecproxy.git] / lib / debug.c
index 3d3a2b9..903c793 100644 (file)
@@ -1,13 +1,14 @@
 /* Copyright 2011 NORDUnet A/S. All rights reserved.
-   See the file COPYING for licensing information.  */
+   See LICENSE for licensing information. */
 
 #if defined HAVE_CONFIG_H
 #include <config.h>
 #endif
 
+#include <sys/types.h>
 #include <stdio.h>
 #include <assert.h>
-#include <freeradius/libradius.h>
+#include <radius/client.h>
 #include <radsec/radsec.h>
 #include <radsec/radsec-impl.h>
 #include "debug.h"
@@ -21,10 +22,10 @@ rs_dump_packet (const struct rs_packet *pkt)
     return;
   p = pkt->rpkt;
 
-  fprintf (stderr, "\tCode: %u, Identifier: %u, Lenght: %u\n",
+  fprintf (stderr, "\tCode: %u, Identifier: %u, Lenght: %zu\n",
           p->code,
           p->id,
-          p->data_len);
+          p->sizeof_data);
   fflush (stderr);
 }