Revision 348
fixed some warnings in colonet robot code
ColonetServer.cpp | ||
---|---|---|
187 | 187 |
char* log_filename = NULL; |
188 | 188 |
|
189 | 189 |
if (optionsG.logging_enabled) { |
190 |
printf("Logging enabled.\n");
|
|
190 |
printf("Logging enabled. Log filename: %s\n", optionsG.log_filename);
|
|
191 | 191 |
log_filename = optionsG.log_filename; |
192 | 192 |
} else { |
193 | 193 |
printf("Logging disabled.\n"); |
194 | 194 |
} |
195 | 195 |
|
196 |
printf("log filename = %p\n", log_filename); |
|
197 |
|
|
198 | 196 |
colonet_wl_init(optionsG.wireless_port, wirelessMessageHandler, log_filename); |
199 | 197 |
|
200 | 198 |
if (colonet_wl_run_listener_thread()) { |
201 |
fprintf(stderr, "%s: colonet_wl_run_listener_thread failed.\n", |
|
202 |
__FUNCTION__); |
|
199 |
fprintf(stderr, "%s: colonet_wl_run_listener_thread failed.\n", __FUNCTION__); |
|
203 | 200 |
return -1; |
204 | 201 |
} |
205 | 202 |
|
... | ... | |
214 | 211 |
* @return 0 on success, negative error code on error |
215 | 212 |
*/ |
216 | 213 |
int ColonetServer::initialize_connection(int port) { |
217 |
printf("Initializing connection that will be used to listen for " |
|
218 |
"clients...\n"); |
|
214 |
printf("Initializing connection that will be used to listen for clients...\n"); |
|
219 | 215 |
int options = 1; |
220 | 216 |
struct sockaddr_in my_address; |
221 | 217 |
|
Also available in: Unified diff