Changeset 0f3e68c in mainline for uspace/drv/uhci-rhd/port.c


Ignore:
Timestamp:
2011-03-12T22:36:33Z (15 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
335382d
Parents:
dd6f59f (diff), 67352d2 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Minor fixes and refactoring

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/uhci-rhd/port.c

    rdd6f59f r0f3e68c  
    4444
    4545#include "port.h"
    46 #include "port_status.h"
    4746
    4847static int uhci_port_new_device(uhci_port_t *port, usb_speed_t speed);
     
    126125                port_status_t port_status = uhci_port_read_status(instance);
    127126
    128                 print_port_status(instance->id_string, port_status);
     127                /* print the value if it's interesting */
     128                if (port_status & ~STATUS_ALWAYS_ONE)
     129                        uhci_port_print_status(instance, port_status);
    129130
    130131                if ((port_status & STATUS_CONNECTED_CHANGED) == 0)
     
    158159                        /* Write one to WC bits, to ack changes */
    159160                        uhci_port_write_status(instance, port_status);
    160                         usb_log_debug("%s: Change status ACK.\n",
     161                        usb_log_debug("%s: status change ACK.\n",
    161162                            instance->id_string);
    162163                }
Note: See TracChangeset for help on using the changeset viewer.