• Wolfgang Denk's avatar
    IDE: bail out of dev_print() for unknown device types · af75a45d
    Wolfgang Denk authored
    Commit 574b3195 introduced a subtle bug by mixing a list of tests
    for "dev_desc->type" and "dev_desc->if_type" into one switch(), which
    then mostly did not work because "dev_desc->type" cannot take any
    "IF_*" type values. A later fix in commit 8ec6e332 changed the
    switch() into testing "dev_desc->if_type", but at this point the
    initial test for unknown device types was completely lost, which
    resulted in output like that for IDE ports without device attached:
    
      Device 1: Model:  Firm:  Ser#:
                Type: # 1F #
                Capacity: not available
    
    This patch re-introduces the missing test for unknown device types.
    Signed-off-by: default avatarWolfgang Denk <wd@denx.de>
    Cc: Stefan Roese <sr@denx.de>
    Cc: Detlev Zundel <dzu@denx.de>
    Tested-by: default avatarStefan Roese <sr@denx.de>
    af75a45d
Name
Last commit
Last update
..
Makefile Loading commit data...
part.c Loading commit data...
part_amiga.c Loading commit data...
part_amiga.h Loading commit data...
part_dos.c Loading commit data...
part_dos.h Loading commit data...
part_efi.c Loading commit data...
part_efi.h Loading commit data...
part_iso.c Loading commit data...
part_iso.h Loading commit data...
part_mac.c Loading commit data...
part_mac.h Loading commit data...