parse_usb.pl: Fix directions
authorMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 7 Dec 2010 09:51:37 +0000 (07:51 -0200)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 7 Dec 2010 09:51:37 +0000 (07:51 -0200)
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
contrib/usb_parse/parse_usb.pl

index 45fafd3..7d46bf0 100755 (executable)
@@ -28,9 +28,9 @@ sub type_req($)
        my $s;
 
        if ($reqtype & 0x80) {
-               $s = "WR ";
-       } else {
                $s = "RD ";
+       } else {
+               $s = "WR ";
        }
        if (($reqtype & 0x60) == 0x20) {
                $s .= "CLAS ";