Want nicer messages out of mpt_sas logs
scsi: [ID 365881 kern.info] /pci@0,0/pci8086,3410@9/pci1000,30d0@0 (mpt_sas2): Log info 0x3112010c received for target 122. scsi_status=0x0, ioc_status=0x804b, scsi_state=0xc
If you're sufficiently versed in arcane wisdom, you could decode that as meaning target 122 generated a 0x4b ioc state (surprise, top bit high just means "there's more info in the Log"), which is "MPI2_IOCSTATUS_SCSI_IOC_TERMINATED" - e.g. a command to a target aborted.
But that's a bit of a mess to figure out, even when you know exactly what you're looking for. So we should get some nicer messages out - the BSDs have some nice code in their LSI-originated mps driver that does pretty printing/translation with messages, so this can probably be shared readily.
We'll see if anyone beats me to finishing this; it shouldn't take too long...