diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-12-05 21:04:48 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-12-05 21:04:48 +0000 |
commit | 0f671e4e97f78cdfe4233031bb7577ee1b0127fa (patch) | |
tree | d12be7d715df35a196237bfa5b0898e33f7e338b /src/scalarproduct/gnunet-scalarproduct.c | |
parent | 0fdf68cbe17bc943e64ecf9b8ef85a8bdd683f78 (diff) | |
download | gnunet-0f671e4e97f78cdfe4233031bb7577ee1b0127fa.tar.gz gnunet-0f671e4e97f78cdfe4233031bb7577ee1b0127fa.zip |
-indentation fixes
Diffstat (limited to 'src/scalarproduct/gnunet-scalarproduct.c')
-rw-r--r-- | src/scalarproduct/gnunet-scalarproduct.c | 48 |
1 files changed, 38 insertions, 10 deletions
diff --git a/src/scalarproduct/gnunet-scalarproduct.c b/src/scalarproduct/gnunet-scalarproduct.c index 7097c4373..2e53cf150 100644 --- a/src/scalarproduct/gnunet-scalarproduct.c +++ b/src/scalarproduct/gnunet-scalarproduct.c | |||
@@ -94,18 +94,29 @@ responder_callback (void *cls, | |||
94 | { | 94 | { |
95 | case GNUNET_SCALARPRODUCT_Status_Success: | 95 | case GNUNET_SCALARPRODUCT_Status_Success: |
96 | ret = 0; | 96 | ret = 0; |
97 | LOG (GNUNET_ERROR_TYPE_INFO, "Session %s concluded.\n", GNUNET_h2s (&closure->key)); | 97 | LOG (GNUNET_ERROR_TYPE_INFO, |
98 | "Session %s concluded.\n", | ||
99 | GNUNET_h2s (&closure->key)); | ||
98 | break; | 100 | break; |
99 | case GNUNET_SCALARPRODUCT_Status_InvalidResponse: | 101 | case GNUNET_SCALARPRODUCT_Status_InvalidResponse: |
100 | LOG (GNUNET_ERROR_TYPE_ERROR, "Session %s failed: invalid response\n", GNUNET_h2s (&closure->key)); | 102 | LOG (GNUNET_ERROR_TYPE_ERROR, |
103 | "Session %s failed: invalid response\n", | ||
104 | GNUNET_h2s (&closure->key)); | ||
101 | break; | 105 | break; |
102 | case GNUNET_SCALARPRODUCT_Status_Failure: | 106 | case GNUNET_SCALARPRODUCT_Status_Failure: |
103 | LOG (GNUNET_ERROR_TYPE_ERROR, "Session %s failed: service failure\n", GNUNET_h2s (&closure->key)); | 107 | LOG (GNUNET_ERROR_TYPE_ERROR, |
108 | "Session %s failed: service failure\n", | ||
109 | GNUNET_h2s (&closure->key)); | ||
104 | case GNUNET_SCALARPRODUCT_Status_ServiceDisconnected: | 110 | case GNUNET_SCALARPRODUCT_Status_ServiceDisconnected: |
105 | LOG (GNUNET_ERROR_TYPE_ERROR, "Session %s failed: service disconnect!!\n", GNUNET_h2s (&closure->key)); | 111 | LOG (GNUNET_ERROR_TYPE_ERROR, |
112 | "Session %s failed: service disconnect!\n", | ||
113 | GNUNET_h2s (&closure->key)); | ||
106 | break; | 114 | break; |
107 | default: | 115 | default: |
108 | LOG (GNUNET_ERROR_TYPE_ERROR, "Session %s failed: return code %d\n", GNUNET_h2s (&closure->key), status); | 116 | LOG (GNUNET_ERROR_TYPE_ERROR, |
117 | "Session %s failed: return code %d\n", | ||
118 | GNUNET_h2s (&closure->key), | ||
119 | status); | ||
109 | } | 120 | } |
110 | GNUNET_SCHEDULER_shutdown(); | 121 | GNUNET_SCHEDULER_shutdown(); |
111 | } | 122 | } |
@@ -136,22 +147,38 @@ requester_callback (void *cls, | |||
136 | printf ("%s", buf); | 147 | printf ("%s", buf); |
137 | } | 148 | } |
138 | else | 149 | else |
139 | LOG_GCRY (GNUNET_ERROR_TYPE_ERROR, "gcry_mpi_aprint", rc); | 150 | LOG_GCRY (GNUNET_ERROR_TYPE_ERROR, |
151 | "gcry_mpi_aprint", | ||
152 | rc); | ||
140 | break; | 153 | break; |
141 | case GNUNET_SCALARPRODUCT_Status_InvalidResponse: | 154 | case GNUNET_SCALARPRODUCT_Status_InvalidResponse: |
142 | LOG (GNUNET_ERROR_TYPE_ERROR, "Session %s with peer %s failed: invalid response received\n", GNUNET_h2s (&closure->key), GNUNET_i2s (&closure->peer)); | 155 | LOG (GNUNET_ERROR_TYPE_ERROR, |
156 | "Session %s with peer %s failed: invalid response received\n", | ||
157 | GNUNET_h2s (&closure->key), | ||
158 | GNUNET_i2s (&closure->peer)); | ||
143 | break; | 159 | break; |
144 | case GNUNET_SCALARPRODUCT_Status_Failure: | 160 | case GNUNET_SCALARPRODUCT_Status_Failure: |
145 | LOG (GNUNET_ERROR_TYPE_ERROR, "Session %s with peer %s failed: API failure\n", GNUNET_h2s (&closure->key), GNUNET_i2s (&closure->peer)); | 161 | LOG (GNUNET_ERROR_TYPE_ERROR, |
162 | "Session %s with peer %s failed: API failure\n", | ||
163 | GNUNET_h2s (&closure->key), | ||
164 | GNUNET_i2s (&closure->peer)); | ||
146 | case GNUNET_SCALARPRODUCT_Status_ServiceDisconnected: | 165 | case GNUNET_SCALARPRODUCT_Status_ServiceDisconnected: |
147 | LOG (GNUNET_ERROR_TYPE_ERROR, "Session %s with peer %s was disconnected from service.\n", GNUNET_h2s (&closure->key), GNUNET_i2s (&closure->peer)); | 166 | LOG (GNUNET_ERROR_TYPE_ERROR, |
167 | "Session %s with peer %s was disconnected from service.\n", | ||
168 | GNUNET_h2s (&closure->key), | ||
169 | GNUNET_i2s (&closure->peer)); | ||
148 | break; | 170 | break; |
149 | default: | 171 | default: |
150 | LOG (GNUNET_ERROR_TYPE_ERROR, "Session %s with peer %s failed: return code %d\n", GNUNET_h2s (&closure->key), GNUNET_i2s (&closure->peer), status); | 172 | LOG (GNUNET_ERROR_TYPE_ERROR, |
173 | "Session %s with peer %s failed: return code %d\n", | ||
174 | GNUNET_h2s (&closure->key), | ||
175 | GNUNET_i2s (&closure->peer), | ||
176 | status); | ||
151 | } | 177 | } |
152 | GNUNET_SCHEDULER_shutdown(); | 178 | GNUNET_SCHEDULER_shutdown(); |
153 | } | 179 | } |
154 | 180 | ||
181 | |||
155 | /** | 182 | /** |
156 | * Task run during shutdown. | 183 | * Task run during shutdown. |
157 | * | 184 | * |
@@ -165,6 +192,7 @@ shutdown_task (void *cls, | |||
165 | GNUNET_SCALARPRODUCT_disconnect (); | 192 | GNUNET_SCALARPRODUCT_disconnect (); |
166 | } | 193 | } |
167 | 194 | ||
195 | |||
168 | /** | 196 | /** |
169 | * Main function that will be run by the scheduler. | 197 | * Main function that will be run by the scheduler. |
170 | * | 198 | * |