]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
camcontrol: dump received data for MMC command even if it is unknown
authorAndriy Gapon <avg@FreeBSD.org>
Sat, 6 Nov 2021 10:23:55 +0000 (12:23 +0200)
committerAndriy Gapon <avg@FreeBSD.org>
Sun, 21 Nov 2021 10:00:42 +0000 (12:00 +0200)
commit128a6d31f2dc59a9869dd852ab2a2343406e53c6
tree75ba29b87cbeb4b47cc37adc6945106be5ba2720
parentee82e15cd9fc8387c06295bc59839ab0cf2f8e10
camcontrol: dump received data for MMC command even if it is unknown

For example, EXT_CSD can be read like this:
    # camcontrol mmcsdcmd 2:0:0 -c 8 -a 0 -f 0x35 -l 512
    CMD 8 arg 0 flags 35
    MMCIO: error 0, 00000900 00000000 00000000 00000000
    No command-specific decoder for CMD 8
    0000   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  |................|
    0010   39 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  |9...............|
    ...
    0100   00 00 00 00 00 00 00 00 01 08 00 01 02 02 00 00  |................|
    ...
    01e0   00 00 00 00 00 00 00 00 00 81 c7 00 00 01 03 07  |................|
    01f0   05 00 03 01 3f 3f 01 01 01 00 00 00 00 00 00 00  |....??..........|

(cherry picked from commit c01a46d4acab923961dfb7e4605b9ca6e775e616)
sbin/camcontrol/camcontrol.c