@@ -213,7 +213,7 @@ ProcessReturnCode parse_arguments(
213213 // Unknown args provided
214214 if (parse.nonOptionsCount ())
215215 {
216- logError (DDSROUTER_ARGS , " ERROR: Unknown argument: <" << parse.nonOption (0 ) << " >." );
216+ EPROSIMA_LOG_ERROR (DDSROUTER_ARGS , " ERROR: Unknown argument: <" << parse.nonOption (0 ) << " >." );
217217 option::printUsage (fwrite, stdout, usage, columns);
218218 return ProcessReturnCode::incorrect_argument;
219219 }
@@ -267,7 +267,7 @@ ProcessReturnCode parse_arguments(
267267 break ;
268268
269269 case optionIndex::UNKNOWN_OPT :
270- logError (DDSROUTER_ARGS , opt << " is not a valid argument." );
270+ EPROSIMA_LOG_ERROR (DDSROUTER_ARGS , opt << " is not a valid argument." );
271271 option::printUsage (fwrite, stdout, usage, columns);
272272 return ProcessReturnCode::incorrect_argument;
273273 break ;
@@ -292,7 +292,7 @@ option::ArgStatus Arg::Unknown(
292292{
293293 if (msg)
294294 {
295- logError (
295+ EPROSIMA_LOG_ERROR (
296296 DDSROUTER_ARGS ,
297297 " Unknown option '" << option << " '. Use -h to see this executable possible arguments." );
298298 }
@@ -310,7 +310,7 @@ option::ArgStatus Arg::Required(
310310
311311 if (msg)
312312 {
313- logError (DDSROUTER_ARGS , " Option '" << option << " ' required." );
313+ EPROSIMA_LOG_ERROR (DDSROUTER_ARGS , " Option '" << option << " ' required." );
314314 }
315315 return option::ARG_ILLEGAL ;
316316}
@@ -330,7 +330,7 @@ option::ArgStatus Arg::Numeric(
330330
331331 if (msg)
332332 {
333- logError (DDSROUTER_ARGS , " Option '" << option << " ' requires a numeric argument." );
333+ EPROSIMA_LOG_ERROR (DDSROUTER_ARGS , " Option '" << option << " ' requires a numeric argument." );
334334 }
335335 return option::ARG_ILLEGAL ;
336336}
@@ -350,7 +350,7 @@ option::ArgStatus Arg::Float(
350350
351351 if (msg)
352352 {
353- logError (DDSROUTER_ARGS , " Option '" << option << " ' requires a float argument." );
353+ EPROSIMA_LOG_ERROR (DDSROUTER_ARGS , " Option '" << option << " ' requires a float argument." );
354354 }
355355 return option::ARG_ILLEGAL ;
356356}
@@ -365,7 +365,7 @@ option::ArgStatus Arg::String(
365365 }
366366 if (msg)
367367 {
368- logError (DDSROUTER_ARGS , " Option '" << option << " ' requires a text argument." );
368+ EPROSIMA_LOG_ERROR (DDSROUTER_ARGS , " Option '" << option << " ' requires a text argument." );
369369 }
370370 return option::ARG_ILLEGAL ;
371371}
@@ -384,7 +384,7 @@ option::ArgStatus Arg::Readable_File(
384384 }
385385 if (msg)
386386 {
387- logError (DDSROUTER_ARGS , " Option '" << option << " ' requires an existing readable file as argument." );
387+ EPROSIMA_LOG_ERROR (DDSROUTER_ARGS , " Option '" << option << " ' requires an existing readable file as argument." );
388388 }
389389 return option::ARG_ILLEGAL ;
390390}
@@ -405,7 +405,7 @@ option::ArgStatus Arg::Valid_Options(
405405 {
406406 if (msg)
407407 {
408- logError (DDSROUTER_ARGS , " Option '" << option.name << " ' requires a text argument." );
408+ EPROSIMA_LOG_ERROR (DDSROUTER_ARGS , " Option '" << option.name << " ' requires a text argument." );
409409 }
410410 return option::ARG_ILLEGAL ;
411411 }
@@ -424,7 +424,7 @@ option::ArgStatus Arg::Valid_Options(
424424 }
425425 error_msg << " }." ;
426426
427- logError (DDSROUTER_ARGS , error_msg);
427+ EPROSIMA_LOG_ERROR (DDSROUTER_ARGS , error_msg);
428428 }
429429
430430 return option::ARG_ILLEGAL ;
0 commit comments