/* scsi_device_type - Return 17 char string indicating device type. @type: type number to look up  */
const char* scsi_device_type(unsigned type)
/* scsi_device_type - Return 17 char string indicating device type. @type: type number to look up  */
const char* scsi_device_type(unsigned type)
{
	if (type == 0x1e)
		return "Well-known LUN   ";
	if (type == 0x1f)
		return "No Device        ";
	if (type >= ARRAY_SIZE(scsi_device_types))
		return "Unknown          ";
	return scsi_device_types[type];
}