• David Brownell's avatar
    USB: usbtest displays diagnostics again · 28ffd79c
    David Brownell authored
    Minor cleanup to the "usbtest" driver, mostly to resolve a regression:
    all the important diagnostics were at KERN_DEBUG, so that when the
    "#define DEBUG" was removed from the top of that file it stopped
    providing diagnostics.  Fix by using KERN_ERROR.  Also:
    
     - Stop using the legacy dbg() calls
     - Simplify the internal debug macros
     - Correct some test descriptions:
    	* Test #10 subcase 7 should *always* stall
    	* Test #10 subcase 8 *may* stall
     - Diagnostic about control queue test failures is more informative
     - Fix some whitespace "bugs"
    
    And add a warning about the rude interaction between usbfs ioctl()
    and khubd during device disconnect ... don't unplug a device under
    test, that will wedge.
    Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
    Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
    28ffd79c
usbtest.c 57.1 KB