diff options
Diffstat (limited to 'src/transport/gnunet-service-transport_plugins.c')
-rw-r--r-- | src/transport/gnunet-service-transport_plugins.c | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/src/transport/gnunet-service-transport_plugins.c b/src/transport/gnunet-service-transport_plugins.c index f14eb57d6..4b3dd455d 100644 --- a/src/transport/gnunet-service-transport_plugins.c +++ b/src/transport/gnunet-service-transport_plugins.c | |||
@@ -144,7 +144,8 @@ GST_plugins_load (GNUNET_TRANSPORT_PluginReceiveCallback recv_cb, | |||
144 | if (plug->api == NULL) | 144 | if (plug->api == NULL) |
145 | { | 145 | { |
146 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, | 146 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, |
147 | _("Failed to load transport plugin for `%s'\n"), plug->lib_name); | 147 | _("Failed to load transport plugin for `%s'\n"), |
148 | plug->lib_name); | ||
148 | GNUNET_CONTAINER_DLL_remove (plugins_head, plugins_tail, plug); | 149 | GNUNET_CONTAINER_DLL_remove (plugins_head, plugins_tail, plug); |
149 | GNUNET_free (plug->short_name); | 150 | GNUNET_free (plug->short_name); |
150 | GNUNET_free (plug->lib_name); | 151 | GNUNET_free (plug->lib_name); |
@@ -210,16 +211,16 @@ GST_plugins_a2s (const struct GNUNET_HELLO_Address *address) | |||
210 | api = GST_plugins_find (address->transport_name); | 211 | api = GST_plugins_find (address->transport_name); |
211 | if (NULL == api) | 212 | if (NULL == api) |
212 | return "<plugin unknown>"; | 213 | return "<plugin unknown>"; |
213 | if (0 == address->address_length) | 214 | if (0 == address->address_length) |
214 | { | 215 | { |
215 | GNUNET_snprintf (unable_to_show, | 216 | GNUNET_snprintf (unable_to_show, sizeof (unable_to_show), |
216 | sizeof (unable_to_show), | 217 | "<unable to stringify %u-byte long address of %s transport>", |
217 | "<unable to stringify %u-byte long address of %s transport>", | 218 | (unsigned int) address->address_length, |
218 | (unsigned int) address->address_length, | 219 | address->transport_name); |
219 | address->transport_name); | ||
220 | return unable_to_show; | 220 | return unable_to_show; |
221 | } | 221 | } |
222 | return api->address_to_string (NULL, address->address, address->address_length); | 222 | return api->address_to_string (NULL, address->address, |
223 | address->address_length); | ||
223 | } | 224 | } |
224 | 225 | ||
225 | 226 | ||