On 12-10-12 04:33 AM, Hannes Reinecke wrote:
Every sg device has a reference to the underlying scsi device, so this patch adds dev_printk() macros to have the messages prefixed with the correct device. Before: [772330.437378] sg_open: dev=2, flags=0x8800 [772330.475425] sg_add_sfp: sfp=0xffff880429d3e000 After: [ 409.399888] sr 2:0:0:0: [sg2] sg_open: flags=0x8800 [ 409.446029] sr 2:0:0:0: [sg2] sg_add_sfp: sfp=0xffff880425856000 Cc: Kay Sievers <kay@xxxxxxxx> Cc: Doug Gilbert <dgilbert@xxxxxxxxxxxx> Signed-off-by: Hannes Reinecke <hare@xxxxxxx>
Acked-by: Douglas Gilbert <dgilbert@xxxxxxxxxxxx> -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html