removed IKE_SA_ID (%J) printf hook, two more to go
[strongswan.git] / src / charon / sa / ike_sa_id.c
index c143fc0..a838c0b 100644 (file)
@@ -24,7 +24,6 @@
 
 #include "ike_sa_id.h"
 
-#include <printf.h>
 #include <stdio.h>
 
 
@@ -153,33 +152,6 @@ static ike_sa_id_t* clone_(private_ike_sa_id_t *this)
 }
 
 /**
- * output handler in printf()
- */
-static int print(FILE *stream, const struct printf_info *info,
-                                const void *const *args)
-{
-       private_ike_sa_id_t *this = *((private_ike_sa_id_t**)(args[0]));
-       
-       if (this == NULL)
-       {
-               return fprintf(stream, "(null)");
-       }
-       return fprintf(stream, "0x%0llx_i%s 0x%0llx_r%s",
-                                  this->initiator_spi,
-                                  this->is_initiator_flag ? "*" : "",
-                                  this->responder_spi,
-                                  this->is_initiator_flag ? "" : "*");
-}
-
-/**
- * register printf() handlers
- */
-static void __attribute__ ((constructor))print_register()
-{
-       register_printf_function(PRINTF_IKE_SA_ID, print, arginfo_ptr);
-}
-
-/**
  * Implementation of ike_sa_id_t.destroy.
  */
 static void destroy(private_ike_sa_id_t *this)