Changeset a1732929 in mainline for uspace/lib/usbhid/src/hidpath.c


Ignore:
Timestamp:
2018-01-15T17:04:34Z (6 years ago)
Author:
Ondřej Hlavatý <aearsis@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
9ff99e8
Parents:
c1a966e
git-author:
Ondřej Hlavatý <aearsis@…> (2018-01-15 17:04:32)
git-committer:
Ondřej Hlavatý <aearsis@…> (2018-01-15 17:04:34)
Message:

usb: unified logging

Use logger instead of printf. Logger adds newlines automatically.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/usbhid/src/hidpath.c

    rc1a966e ra1732929  
    173173void usb_hid_print_usage_path(usb_hid_report_path_t *path)
    174174{
    175         usb_log_debug("USAGE_PATH FOR RId(%d):\n", path->report_id);
    176         usb_log_debug("\tLENGTH: %d\n", path->depth);
     175        usb_log_debug("USAGE_PATH FOR RId(%d):", path->report_id);
     176        usb_log_debug("\tLENGTH: %d", path->depth);
    177177
    178178        list_foreach(path->items, rpath_items_link,
    179179            usb_hid_report_usage_path_t, path_item) {
    180180
    181                 usb_log_debug("\tUSAGE_PAGE: %X\n", path_item->usage_page);
    182                 usb_log_debug("\tUSAGE: %X\n", path_item->usage);
    183                 usb_log_debug("\tFLAGS: %d\n", path_item->flags);
     181                usb_log_debug("\tUSAGE_PAGE: %X", path_item->usage_page);
     182                usb_log_debug("\tUSAGE: %X", path_item->usage);
     183                usb_log_debug("\tFLAGS: %d", path_item->flags);
    184184        }
    185185}
Note: See TracChangeset for help on using the changeset viewer.