Changeset 621fdaa in mainline


Ignore:
Timestamp:
2011-01-29T07:23:03Z (14 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
86b39f7e
Parents:
c8ca07e
Message:

Print errors as errors, not debug messages.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/uhci/debug.h

    rc8ca07e r621fdaa  
    3535#define DRV_UHCI_DEBUG_H
    3636
     37#include <stdio.h>
    3738#include <usb/debug.h>
    3839
     
    4950
    5051#define uhci_printf( level, fmt, args...) \
    51         usb_dprintf( NAME, level, fmt, ##args )
     52        usb_dprintf(NAME, level, fmt, ##args)
     53
     54#define uhci_print_fatal( fmt, args... ) \
     55        fprintf(stderr, "[" NAME ":FATAL ERROR]: " fmt, ##args)
    5256
    5357#define uhci_print_error( fmt, args... ) \
    54         usb_dprintf( NAME, DEBUG_LEVEL_ERROR, fmt, ##args )
     58        fprintf(stderr, "[" NAME ":ERROR]: " fmt, ##args)
     59
     60#define uhci_print_warning( fmt, args... ) \
     61        usb_dprintf( NAME, DEBUG_LEVEL_WARNING, fmt, ##args )
    5562
    5663#define uhci_print_info( fmt, args... ) \
Note: See TracChangeset for help on using the changeset viewer.