aboutsummaryrefslogtreecommitdiff
path: root/src/transport/transport-testing-loggers.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/transport/transport-testing-loggers.c')
-rw-r--r--src/transport/transport-testing-loggers.c44
1 files changed, 22 insertions, 22 deletions
diff --git a/src/transport/transport-testing-loggers.c b/src/transport/transport-testing-loggers.c
index 6ad181e87..5fb7f2233 100644
--- a/src/transport/transport-testing-loggers.c
+++ b/src/transport/transport-testing-loggers.c
@@ -12,12 +12,12 @@
12 WITHOUT ANY WARRANTY; without even the implied warranty of 12 WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 Affero General Public License for more details. 14 Affero General Public License for more details.
15 15
16 You should have received a copy of the GNU Affero General Public License 16 You should have received a copy of the GNU Affero General Public License
17 along with this program. If not, see <http://www.gnu.org/licenses/>. 17 along with this program. If not, see <http://www.gnu.org/licenses/>.
18 18
19 SPDX-License-Identifier: AGPL3.0-or-later 19 SPDX-License-Identifier: AGPL3.0-or-later
20*/ 20 */
21/** 21/**
22 * @file transport-testing-loggers.c 22 * @file transport-testing-loggers.c
23 * @brief convenience functions for logging common events in tests 23 * @brief convenience functions for logging common events in tests
@@ -34,19 +34,19 @@
34 * @param other peer that connected. 34 * @param other peer that connected.
35 */ 35 */
36void 36void
37GNUNET_TRANSPORT_TESTING_log_connect (void *cls, 37GNUNET_TRANSPORT_TESTING_log_connect(void *cls,
38 struct GNUNET_TRANSPORT_TESTING_PeerContext *me, 38 struct GNUNET_TRANSPORT_TESTING_PeerContext *me,
39 const struct GNUNET_PeerIdentity *other) 39 const struct GNUNET_PeerIdentity *other)
40{ 40{
41 char *ps; 41 char *ps;
42 42
43 ps = GNUNET_strdup (GNUNET_i2s (&me->id)); 43 ps = GNUNET_strdup(GNUNET_i2s(&me->id));
44 GNUNET_log (GNUNET_ERROR_TYPE_INFO, 44 GNUNET_log(GNUNET_ERROR_TYPE_INFO,
45 "Peer %s connected to %u (%s)!\n", 45 "Peer %s connected to %u (%s)!\n",
46 GNUNET_i2s (other), 46 GNUNET_i2s(other),
47 me->no, 47 me->no,
48 ps); 48 ps);
49 GNUNET_free (ps); 49 GNUNET_free(ps);
50} 50}
51 51
52 52
@@ -59,19 +59,19 @@ GNUNET_TRANSPORT_TESTING_log_connect (void *cls,
59 * @param other peer that disconnected. 59 * @param other peer that disconnected.
60 */ 60 */
61void 61void
62GNUNET_TRANSPORT_TESTING_log_disconnect (void *cls, 62GNUNET_TRANSPORT_TESTING_log_disconnect(void *cls,
63 struct GNUNET_TRANSPORT_TESTING_PeerContext *me, 63 struct GNUNET_TRANSPORT_TESTING_PeerContext *me,
64 const struct GNUNET_PeerIdentity *other) 64 const struct GNUNET_PeerIdentity *other)
65{ 65{
66 char *ps; 66 char *ps;
67 67
68 ps = GNUNET_strdup (GNUNET_i2s (&me->id)); 68 ps = GNUNET_strdup(GNUNET_i2s(&me->id));
69 GNUNET_log (GNUNET_ERROR_TYPE_INFO, 69 GNUNET_log(GNUNET_ERROR_TYPE_INFO,
70 "Peer `%s' disconnected from %u (%s)!\n", 70 "Peer `%s' disconnected from %u (%s)!\n",
71 GNUNET_i2s (other), 71 GNUNET_i2s(other),
72 me->no, 72 me->no,
73 ps); 73 ps);
74 GNUNET_free (ps); 74 GNUNET_free(ps);
75} 75}
76 76
77/* end of transport-testing-loggers.c */ 77/* end of transport-testing-loggers.c */