@@ -224,7 +224,6 @@ struct log_config
224224 *
225225 * @brief Starts the logging subsystem
226226 * @param l_cfg logging system configuration
227- * @return
228227 *
229228 */
230229enum logReturns
@@ -241,7 +240,7 @@ internal_log_end(struct log_config *l_cfg);
241240
242241/**
243242 * Converts a log level to a string
244- * @param lvl, the loglevel
243+ * @param lvl the loglevel
245244 * @param str pointer where the string will be stored.
246245 */
247246void
@@ -250,7 +249,7 @@ internal_log_lvl2str(const enum logLevels lvl, char *str);
250249/**
251250 *
252251 * @brief Converts a string to a log level
253- * @param s The string to convert
252+ * @param buf The string to convert
254253 * @return The corresponding level or LOG_LEVEL_DEBUG if error
255254 *
256255 */
@@ -273,12 +272,11 @@ internal_log_config_dump(struct log_config *config);
273272
274273/**
275274 * the log function that all files use to log an event.
276- * @param lvl, the loglevel
277- * @param override_destination_level, if true then the destination log level is not used
278- * @param override_log_level, the loglevel instead of the destination log level if override_destination_level is true
279- * @param msg, the logtext.
280- * @param ap, the values for the message format arguments
281- * @return
275+ * @param lvl the loglevel
276+ * @param override_destination_level if true then the destination log level is not used
277+ * @param override_log_level the loglevel instead of the destination log level if override_destination_level is true
278+ * @param msg the logtext.
279+ * @param ap the values for the message format arguments
282280 */
283281enum logReturns
284282internal_log_message (const enum logLevels lvl ,
@@ -288,9 +286,9 @@ internal_log_message(const enum logLevels lvl,
288286 va_list ap );
289287
290288/**
291- * @param log_level, the log level
292- * @param override_destination_level, if true then the destination log level is ignored.
293- * @param override_log_level, the log level to use instead of the destination log level
289+ * @param log_level the log level
290+ * @param override_destination_level if true then the destination log level is ignored.
291+ * @param override_log_level the log level to use instead of the destination log level
294292 * if override_destination_level is true
295293 * @return true if at least one log destination will accept a message logged at the given level.
296294 */
@@ -300,9 +298,9 @@ internal_log_is_enabled_for_level(const enum logLevels log_level,
300298 const enum logLevels override_log_level );
301299
302300/**
303- * @param function_name, the function name (typically the __func__ macro)
304- * @param file_name, the file name (typically the __FILE__ macro)
305- * @param[out] log_level_return, the log level to use instead of the destination log level
301+ * @param function_name the function name (typically the __func__ macro)
302+ * @param file_name the file name (typically the __FILE__ macro)
303+ * @param[out] log_level_return the log level to use instead of the destination log level
306304 * @return true if the logger location overrides the destination log levels
307305 */
308306bool_t
@@ -316,7 +314,6 @@ internal_log_location_overrides_level(const char *function_name,
316314/**
317315 * This function initialize the log facilities according to the configuration
318316 * file, that is described by the in parameter.
319- * @param iniFile
320317 * @param applicationName the name that is used in the log for the running
321318 * application
322319 * @param flags Flags to affect the operation of the call
@@ -328,8 +325,6 @@ log_start(const char *iniFile, const char *applicationName,
328325
329326/**
330327 * An alternative log_start where the caller gives the params directly.
331- * @param config
332- * @return
333328 *
334329 * @post to avoid memory leaks, the config argument must be free'ed using
335330 * `log_config_free()`
@@ -344,8 +339,8 @@ log_start_from_param(const struct log_config *src_log_config);
344339 * The config can be customised by the caller before calling
345340 * log_start_from_param()
346341 *
347- * @param Default log level
348- * @param Log level name, or NULL. This can be used to provide an
342+ * @param lvl log level
343+ * @param override_name level name, or NULL. This can be used to provide an
349344 * override to the default log level, by environment variable or
350345 * argument.
351346 *
@@ -357,10 +352,8 @@ log_config_init_for_console(enum logLevels lvl, const char *override_name);
357352/**
358353 * Read configuration from a file and store the values in the returned
359354 * log_config.
360- * @param file
361- * @param applicationName, the application name used in the log events.
362- * @param section_prefix, prefix for the logging sections to parse
363- * @return
355+ * @param applicationName the application name used in the log events.
356+ * @param section_prefix prefix for the logging sections to parse
364357 */
365358struct log_config *
366359log_config_init_from_config (const char * iniFilename ,
@@ -375,7 +368,6 @@ log_config_free(struct log_config *config);
375368
376369/**
377370 * Function that terminates all logging
378- * @return
379371 */
380372enum logReturns
381373log_end (void );
@@ -385,10 +377,8 @@ log_end(void);
385377 *
386378 * Please prefer to use the LOG and LOG_DEVEL macros instead of this function directly.
387379 *
388- * @param lvl, the loglevel
389- * @param msg, the logtext.
390- * @param ...
391- * @return
380+ * @param lvl the loglevel
381+ * @param msg the logtext.
392382 */
393383enum logReturns
394384log_message (const enum logLevels lvl , const char * msg , ...) printflike (2 , 3 );
@@ -405,13 +395,11 @@ log_hexdump(const enum logLevels log_level,
405395 *
406396 * Please prefer to use the LOG and LOG_DEVEL macros instead of this function directly.
407397 *
408- * @param function_name, the function name (typically the __func__ macro)
409- * @param file_name, the file name (typically the __FILE__ macro)
410- * @param line_number, the line number in the file (typically the __LINE__ macro)
411- * @param lvl, the loglevel
412- * @param msg, the logtext.
413- * @param ...
414- * @return
398+ * @param function_name the function name (typically the __func__ macro)
399+ * @param file_name the file name (typically the __FILE__ macro)
400+ * @param line_number the line number in the file (typically the __LINE__ macro)
401+ * @param lvl the loglevel
402+ * @param msg the logtext.
415403 */
416404enum logReturns
417405log_message_with_location (const char * function_name ,
@@ -434,13 +422,11 @@ log_hexdump_with_location(const char *function_name,
434422 * This function returns the configured file name for the logfile
435423 * @param replybuf the buffer where the reply is stored
436424 * @param bufsize how big is the reply buffer.
437- * @return
438425 */
439426char * getLogFile (char * replybuf , int bufsize );
440427
441428/**
442429 * Returns formatted datetime for log
443- * @return
444430 */
445431char * getFormattedDateTime (char * replybuf , int bufsize );
446432
0 commit comments