Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 920d0fc in mainline for uspace/lib/usb/src/debug.c


Ignore:
Timestamp:
2012-08-17T14:15:28Z (9 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master
Children:
a1a101d
Parents:
20dd67e
Message:

USB logging functions are only macros to standard logging

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/usb/src/debug.c

    r20dd67e r920d0fc  
    4040#include <ddf/log.h>
    4141#include <usb/debug.h>
    42 
    43 /** Enable logging.
    44  *
    45  * @param level Maximal enabled level (including this one).
    46  * @param message_prefix Prefix for each printed message.
    47  */
    48 void usb_log_enable(log_level_t level, const char *message_prefix)
    49 {
    50         log_init(message_prefix);
    51 }
    52 
    53 /** Print logging message.
    54  *
    55  * @param level Verbosity level of the message.
    56  * @param format Formatting directive.
    57  */
    58 void usb_log_printf(log_level_t level, const char *format, ...)
    59 {
    60         va_list args;
    61 
    62         va_start(args, format);
    63         log_msgv(level, format, args);
    64         va_end(args);
    65 }
    66 
    6742
    6843#define REMAINDER_STR_FMT " (%zu)..."
Note: See TracChangeset for help on using the changeset viewer.