Thread (130 messages) flat view 130 messages, 5 authors, 5d ago

Re: [PATCH v2 06/40] scsi: use struct scsi_sense_hdr to log sense keys and codes

From: Hannes Reinecke <hare@suse.de>
Date: 2026-09-07 12:19:08
Also in: linux-s390, linux-scsi, linux-usb

On 9/3/26 5:41 AM, Damien Le Moal wrote:
Instead of passing the sense key, additional sense code and additional
sense code qualifier as separate parameters, change the functions
scsi_extd_sense_format(), scsi_format_extd_sense(), and
usb_stor_show_sense() to take a pointer to a struct scsi_sense_hdr to
access the sense key and sense code with a single argument.

No functional change intended.

Signed-off-by: Damien Le Moal <dlemoal@kernel.org>
---
  drivers/scsi/constants.c        | 11 +++++------
  drivers/scsi/scsi_logging.c     | 22 ++++++++++++----------
  drivers/usb/storage/debug.c     | 12 +++++-------
  drivers/usb/storage/debug.h     |  4 ++--
  drivers/usb/storage/transport.c |  2 +-
  include/scsi/scsi_dbg.h         |  6 +++---
  6 files changed, 28 insertions(+), 29 deletions(-)
Reviewed-by: Hannes Reinecke <hare@kernel.org>

Cheers,

Hannes
-- 
Dr. Hannes Reinecke                  Kernel Storage Architect
hare@suse.de                                +49 911 74053 688
SUSE Software Solutions GmbH, Frankenstr. 146, 90461 Nürnberg
HRB 36809 (AG Nürnberg), GF: I. Totev, A. McDonald, W. Knoblich
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help