Changeset ebcb05a in mainline for uspace/lib


Ignore:
Timestamp:
2011-04-01T19:00:51Z (15 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
969585f, ea53529
Parents:
bdbb6f6
Message:

Logging functions should append newline automatically. Since one has no
choice but to end log message with a newline, there is no need to do it
manually in every invocation.

Location:
uspace/lib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/io/log.c

    rbdbb6f6 rebcb05a  
    8484 *                      if verbosity is less than or equal to current
    8585 *                      reporting level.
    86  * @param fmt           Format string
     86 * @param fmt           Format string (no traling newline).
    8787 */
    8888void log_msg(log_level_t level, const char *fmt, ...)
     
    100100 *                      if verbosity is less than or equal to current
    101101 *                      reporting level.
    102  * @param fmt           Format string
     102 * @param fmt           Format string (no trailing newline)
    103103 */
    104104void log_msgv(log_level_t level, const char *fmt, va_list args)
     
    113113                    log_level_names[level]);
    114114                vfprintf(log_stream, fmt, args);
     115                fputc('\n', log_stream);
    115116                fflush(log_stream);
    116117
  • uspace/lib/drv/generic/log.c

    rbdbb6f6 rebcb05a  
    5151 *                      if verbosity is less than or equal to current
    5252 *                      reporting level.
    53  * @param fmt           Format string
     53 * @param fmt           Format string (no trailing newline)
    5454 */
    5555void ddf_msg(log_level_t level, const char *fmt, ...)
Note: See TracChangeset for help on using the changeset viewer.