Changeset 920d0fc in mainline
- Timestamp:
- 2012-08-17T14:15:28Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a1a101d
- Parents:
- 20dd67e
- Location:
- uspace
- Files:
-
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/vuhid/main.c
r20dd67e r920d0fc 155 155 int rc; 156 156 157 usb_log_enable(USB_LOG_LEVEL_DEBUG2, "vusbhid");157 log_init("vuhid"); 158 158 159 159 fibril_mutex_initialize(&vuhid_data.iface_count_mutex); -
uspace/drv/bus/usb/ehci/main.c
r20dd67e r920d0fc 132 132 int main(int argc, char *argv[]) 133 133 { 134 usb_log_enable(USB_LOG_LEVEL_DEFAULT,NAME);134 log_init(NAME); 135 135 return ddf_driver_main(&ehci_driver); 136 136 } -
uspace/drv/bus/usb/ohci/main.c
r20dd67e r920d0fc 83 83 int main(int argc, char *argv[]) 84 84 { 85 usb_log_enable(USB_LOG_LEVEL_DEFAULT,NAME);85 log_init(NAME); 86 86 return ddf_driver_main(&ohci_driver); 87 87 } -
uspace/drv/bus/usb/uhci/main.c
r20dd67e r920d0fc 87 87 { 88 88 printf(NAME ": HelenOS UHCI driver.\n"); 89 usb_log_enable(USB_LOG_LEVEL_DEFAULT,NAME);89 log_init(NAME); 90 90 91 91 return ddf_driver_main(&uhci_driver); -
uspace/drv/bus/usb/uhcirh/main.c
r20dd67e r920d0fc 73 73 { 74 74 printf(NAME ": HelenOS UHCI root hub driver.\n"); 75 usb_log_enable(USB_LOG_LEVEL_DEFAULT,NAME);75 log_init(NAME); 76 76 return ddf_driver_main(&uhci_rh_driver); 77 77 } -
uspace/drv/bus/usb/usbflbk/main.c
r20dd67e r920d0fc 110 110 int main(int argc, char *argv[]) 111 111 { 112 usb_log_enable(USB_LOG_LEVEL_DEFAULT,NAME);112 log_init(NAME); 113 113 114 114 return usb_driver_main(&usbfallback_driver); -
uspace/drv/bus/usb/usbhid/main.c
r20dd67e r920d0fc 172 172 printf(NAME ": HelenOS USB HID driver.\n"); 173 173 174 usb_log_enable(USB_LOG_LEVEL_DEFAULT,NAME);174 log_init(NAME); 175 175 176 176 return usb_driver_main(&usb_hid_driver); -
uspace/drv/bus/usb/usbhub/main.c
r20dd67e r920d0fc 79 79 { 80 80 printf(NAME ": HelenOS USB hub driver.\n"); 81 usb_log_enable(USB_LOG_LEVEL_DEFAULT,NAME);81 log_init(NAME); 82 82 83 83 return usb_driver_main(&usb_hub_driver); -
uspace/drv/bus/usb/usbmast/main.c
r20dd67e r920d0fc 383 383 int main(int argc, char *argv[]) 384 384 { 385 usb_log_enable(USB_LOG_LEVEL_DEFAULT,NAME);385 log_init(NAME); 386 386 387 387 return usb_driver_main(&usbmast_driver); -
uspace/drv/bus/usb/usbmid/main.c
r20dd67e r920d0fc 180 180 printf(NAME ": USB multi interface device driver.\n"); 181 181 182 usb_log_enable(USB_LOG_LEVEL_DEFAULT,NAME);182 log_init(NAME); 183 183 184 184 return usb_driver_main(&mid_driver); -
uspace/drv/bus/usb/vhc/Makefile
r20dd67e r920d0fc 32 32 $(LIBUSBDEV_PREFIX)/libusbdev.a \ 33 33 $(LIBUSBHOST_PREFIX)/libusbhost.a \ 34 $(LIBUSBVIRT_PREFIX)/libusbvirt.a \ 34 35 $(LIBUSB_PREFIX)/libusb.a \ 35 $(LIBUSBVIRT_PREFIX)/libusbvirt.a \36 36 $(LIBDRV_PREFIX)/libdrv.a 37 37 -
uspace/drv/bus/usb/vhc/main.c
r20dd67e r920d0fc 138 138 int main(int argc, char * argv[]) 139 139 { 140 usb_log_enable(USB_LOG_LEVEL_DEFAULT,NAME);140 log_init(NAME); 141 141 142 142 printf(NAME ": virtual USB host controller driver.\n"); -
uspace/lib/usb/include/usb/debug.h
r20dd67e r920d0fc 58 58 #endif 59 59 60 void usb_log_enable(log_level_t , const char *); 61 62 void usb_log_printf(log_level_t, const char *, ...) 63 PRINTF_ATTRIBUTE(2, 3); 60 #define usb_log_printf(level, format, ...) \ 61 log_msg(level, format, ##__VA_ARGS__) 64 62 65 63 /** Log fatal error. */ -
uspace/lib/usb/src/debug.c
r20dd67e r920d0fc 40 40 #include <ddf/log.h> 41 41 #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 67 42 68 43 #define REMAINDER_STR_FMT " (%zu)..."
Note:
See TracChangeset
for help on using the changeset viewer.