openbmc/build/tmp/deploy/sdk/witherspoon-2019-08-08/sysroots/armv6-openbmc-linux-gnueabi/usr/src/debug/util-linux/2.33.2-r0/util-linux-2.33.2/lib/blkdev.c
const char* blkdev_scsi_type_to_name(int type)
{
    switch (type)
    {
        case SCSI_TYPE_DISK:
            return "disk";
        case SCSI_TYPE_TAPE:
            return "tape";
        case SCSI_TYPE_PRINTER:
            return "printer";
        case SCSI_TYPE_PROCESSOR:
            return "processor";
        case SCSI_TYPE_WORM:
            return "worm";
        case SCSI_TYPE_ROM:
            return "rom";
        case SCSI_TYPE_SCANNER:
            return "scanner";
        case SCSI_TYPE_MOD:
            return "mo-disk";
        case SCSI_TYPE_MEDIUM_CHANGER:
            return "changer";
        case SCSI_TYPE_COMM:
            return "comm";
        case SCSI_TYPE_RAID:
            return "raid";
        case SCSI_TYPE_ENCLOSURE:
            return "enclosure";
        case SCSI_TYPE_RBC:
            return "rbc";
        case SCSI_TYPE_OSD:
            return "osd";
        case SCSI_TYPE_NO_LUN:
            return "no-lun";
        default:
            break;
    }
    return NULL;
}
/*
 * Convert scsi type to human readable string.
 */
Convert scsi type to human readable string.
Convert scsi type to human readable string .
const char* blkdev_scsi_type_to_name(int type)
{
    switch (type)
    {
        case SCSI_TYPE_DISK:
            return "disk";
        case SCSI_TYPE_TAPE:
            return "tape";
        case SCSI_TYPE_PRINTER:
            return "printer";
        case SCSI_TYPE_PROCESSOR:
            return "processor";
        case SCSI_TYPE_WORM:
            return "worm";
        case SCSI_TYPE_ROM:
            return "rom";
        case SCSI_TYPE_SCANNER:
            return "scanner";
        case SCSI_TYPE_MOD:
            return "mo-disk";
        case SCSI_TYPE_MEDIUM_CHANGER:
            return "changer";
        case SCSI_TYPE_COMM:
            return "comm";
        case SCSI_TYPE_RAID:
            return "raid";
        case SCSI_TYPE_ENCLOSURE:
            return "enclosure";
        case SCSI_TYPE_RBC:
            return "rbc";
        case SCSI_TYPE_OSD:
            return "osd";
        case SCSI_TYPE_NO_LUN:
            return "no-lun";
        default:
            break;
    }
    return NULL;
}
const char * blkdev_scsi_type_to_name ( int type ) { switch ( type ) { case SCSI_TYPE_DISK : return " " ; case SCSI_TYPE_TAPE : return " " ; case SCSI_TYPE_PRINTER : return " " ; case SCSI_TYPE_PROCESSOR : return " " ; case SCSI_TYPE_WORM : return " " ; case SCSI_TYPE_ROM : return " " ; case SCSI_TYPE_SCANNER : return " " ; case SCSI_TYPE_MOD : return " " ; case SCSI_TYPE_MEDIUM_CHANGER : return " " ; case SCSI_TYPE_COMM : return " " ; case SCSI_TYPE_RAID : return " " ; case SCSI_TYPE_ENCLOSURE : return " " ; case SCSI_TYPE_RBC : return " " ; case SCSI_TYPE_OSD : return " " ; case SCSI_TYPE_NO_LUN : return " " ; default : break ; } return NULL ; }
Convert scsi type to human readable string.
Convert scsi type to human readable string .