LRN: cosmetics
authorChristian Grothoff <christian@grothoff.org>
Sat, 5 Nov 2011 14:45:36 +0000 (14:45 +0000)
committerChristian Grothoff <christian@grothoff.org>
Sat, 5 Nov 2011 14:45:36 +0000 (14:45 +0000)
src/include/gnunet_common.h
src/transport/gnunet-service-transport.c
src/transport/gnunet-service-transport_neighbours.c

index 08c1f96c98bcf4e31012a69d332e5b48aafa5bd1..8f3ff81278886ac8fb1d5b6f15ac7bba93ed734e 100644 (file)
@@ -372,7 +372,7 @@ GNUNET_error_type_to_string (enum GNUNET_ErrorType kind);
  * we still want to see these problems during
  * development and testing.  "OP == other peer".
  */
-#define GNUNET_break_op(cond)  do { if (! (cond)) { GNUNET_log(GNUNET_ERROR_TYPE_WARNING, _("External protocol violation detected at %s:%d.\n"), __FILE__, __LINE__); } } while(0)
+#define GNUNET_break_op(cond)  do { if (! (cond)) { GNUNET_log(GNUNET_ERROR_TYPE_WARNING | GNUNET_ERROR_TYPE_BULK, _("External protocol violation detected at %s:%d.\n"), __FILE__, __LINE__); } } while(0)
 
 /**
  * Log an error message at log-level 'level' that indicates
index 878ab261866584b8ddf7326c0d8853f7aa501fbd..30bcad8062bd427a6e6a8eff91291c9d930bca19 100644 (file)
@@ -215,7 +215,7 @@ plugin_env_receive_callback (void *cls, const struct GNUNET_PeerIdentity *peer,
   type = ntohs (message->type);
 #if DEBUG_TRANSPORT
 
-  GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Received Message with type %u\n", type);
+  GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Received Message with type %u\n", type);
 #endif
 
   switch (type)
index 0ceba53bc627227f84f046188ed4a9c1978896b7..e0af12b3c9b7a2dec562e36ffe6a6649e9398614 100644 (file)
@@ -2029,7 +2029,7 @@ GST_neighbours_handle_connect_ack (const struct GNUNET_MessageHeader *message,
                              sender_address_len, session, GNUNET_YES);
 
 #if DEBUG_TRANSPORT
-  GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
+  GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
               "Setting inbound quota of %u for peer `%s' to \n",
               ntohl (n->bandwidth_in.value__), GNUNET_i2s (&n->id));
 #endif