[PATCH 3/3] nvme: Make controller state visible via sysfs

Sagi Grimberg sagi at grimberg.me
Mon Dec 5 09:06:04 PST 2016


>> +	return sprintf(buf, "%s\n",
>> +		       (unsigned)ctrl->state < ARRAY_SIZE(state_name) ?
>> +		       state_name[ctrl->state] : "???");
>
> I'd use an if here instead of the ? : and print unknown instead of the ???

I can change that...



More information about the Linux-nvme mailing list