mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Douglas Gilbert <dgilbert@interlog.com>
To: Rasmus Villemoes <linux@rasmusvillemoes.dk>,
	Christoph Hellwig <hch@infradead.org>,
	Hannes Reinecke <hare@suse.de>,
	Bart Van Assche <bart.vanassche@sandisk.com>,
	"James E.J. Bottomley" <JBottomley@odin.com>,
	Julian Calaby <julian.calaby@gmail.com>
Cc: linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2 1/3] scsi: make some Additional Sense strings more grep'able
Date: Tue, 22 Dec 2015 15:25:21 -0500	[thread overview]
Message-ID: <5679B1B1.5050206@interlog.com> (raw)
In-Reply-To: <1448358147-23663-2-git-send-email-linux@rasmusvillemoes.dk>

On 15-11-24 04:42 AM, Rasmus Villemoes wrote:
> There's little point in breaking these strings over multiple lines.
>
> Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>

Tested-by: Douglas Gilbert <dgilbert@interlog.com>

> ---
>   drivers/scsi/constants.c | 27 +++++++++------------------
>   1 file changed, 9 insertions(+), 18 deletions(-)
>
> diff --git a/drivers/scsi/constants.c b/drivers/scsi/constants.c
> index fa09d4be2b53..58d94e3c3713 100644
> --- a/drivers/scsi/constants.c
> +++ b/drivers/scsi/constants.c
> @@ -346,11 +346,9 @@ static const struct error_info additional[] =
>   	{0x0407, "Logical unit not ready, operation in progress"},
>   	{0x0408, "Logical unit not ready, long write in progress"},
>   	{0x0409, "Logical unit not ready, self-test in progress"},
> -	{0x040A, "Logical unit not accessible, asymmetric access state "
> -	 "transition"},
> +	{0x040A, "Logical unit not accessible, asymmetric access state transition"},
>   	{0x040B, "Logical unit not accessible, target port in standby state"},
> -	{0x040C, "Logical unit not accessible, target port in unavailable "
> -	 "state"},
> +	{0x040C, "Logical unit not accessible, target port in unavailable state"},
>   	{0x040D, "Logical unit not ready, structure check required"},
>   	{0x040E, "Logical unit not ready, security session in progress"},
>   	{0x0410, "Logical unit not ready, auxiliary memory not accessible"},
> @@ -363,11 +361,9 @@ static const struct error_info additional[] =
>   	{0x0417, "Logical unit not ready, calibration required"},
>   	{0x0418, "Logical unit not ready, a door is open"},
>   	{0x0419, "Logical unit not ready, operating in sequential mode"},
> -	{0x041A, "Logical unit not ready, start stop unit command in "
> -	 "progress"},
> +	{0x041A, "Logical unit not ready, start stop unit command in progress"},
>   	{0x041B, "Logical unit not ready, sanitize in progress"},
> -	{0x041C, "Logical unit not ready, additional power use not yet "
> -	 "granted"},
> +	{0x041C, "Logical unit not ready, additional power use not yet granted"},
>   	{0x041D, "Logical unit not ready, configuration in progress"},
>   	{0x041E, "Logical unit not ready, microcode activation required"},
>   	{0x041F, "Logical unit not ready, microcode download required"},
> @@ -559,8 +555,7 @@ static const struct error_info additional[] =
>   	{0x2300, "Invalid token operation, cause not reportable"},
>   	{0x2301, "Invalid token operation, unsupported token type"},
>   	{0x2302, "Invalid token operation, remote token usage not supported"},
> -	{0x2303, "Invalid token operation, remote rod token creation not "
> -	 "supported"},
> +	{0x2303, "Invalid token operation, remote rod token creation not supported"},
>   	{0x2304, "Invalid token operation, token unknown"},
>   	{0x2305, "Invalid token operation, token corrupt"},
>   	{0x2306, "Invalid token operation, token revoked"},
> @@ -641,8 +636,7 @@ static const struct error_info additional[] =
>   	{0x2A0D, "Data encryption capabilities changed"},
>   	{0x2A10, "Timestamp changed"},
>   	{0x2A11, "Data encryption parameters changed by another i_t nexus"},
> -	{0x2A12, "Data encryption parameters changed by vendor specific "
> -		 "event"},
> +	{0x2A12, "Data encryption parameters changed by vendor specific event"},
>   	{0x2A13, "Data encryption key instance counter has changed"},
>   	{0x2A14, "SA creation capabilities data has changed"},
>   	{0x2A15, "Medium removal prevention preempted"},
> @@ -759,8 +753,7 @@ static const struct error_info additional[] =
>   	{0x3B19, "Element enabled"},
>   	{0x3B1A, "Data transfer device removed"},
>   	{0x3B1B, "Data transfer device inserted"},
> -	{0x3B1C, "Too many logical objects on partition to support "
> -	 "operation"},
> +	{0x3B1C, "Too many logical objects on partition to support operation"},
>
>   	{0x3D00, "Invalid bits in identify message"},
>
> @@ -957,8 +950,7 @@ static const struct error_info additional[] =
>   	{0x5D39, "Data channel impending failure throughput performance"},
>   	{0x5D3A, "Data channel impending failure seek time performance"},
>   	{0x5D3B, "Data channel impending failure spin-up retry count"},
> -	{0x5D3C, "Data channel impending failure drive calibration retry "
> -	 "count"},
> +	{0x5D3C, "Data channel impending failure drive calibration retry count"},
>   	{0x5D40, "Servo impending failure general hard drive failure"},
>   	{0x5D41, "Servo impending failure drive error rate too high"},
>   	{0x5D42, "Servo impending failure data error rate too high"},
> @@ -1070,8 +1062,7 @@ static const struct error_info additional[] =
>
>   	{0x6E00, "Command to logical unit failed"},
>
> -	{0x6F00, "Copy protection key exchange failure - authentication "
> -	 "failure"},
> +	{0x6F00, "Copy protection key exchange failure - authentication failure"},
>   	{0x6F01, "Copy protection key exchange failure - key not present"},
>   	{0x6F02, "Copy protection key exchange failure - key not established"},
>   	{0x6F03, "Read of scrambled sector without authentication"},
>


  reply	other threads:[~2015-12-22 20:25 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-24  9:42 [PATCH v2 0/3] scsi: reduce CONFIG_SCSI_CONSTANTS=y impact by 8k Rasmus Villemoes
2015-11-24  9:42 ` [PATCH v2 1/3] scsi: make some Additional Sense strings more grep'able Rasmus Villemoes
2015-12-22 20:25   ` Douglas Gilbert [this message]
2015-11-24  9:42 ` [PATCH v2 2/3] scsi: move Additional Sense Codes to separate file Rasmus Villemoes
2015-12-22 20:25   ` Douglas Gilbert
2015-11-24  9:42 ` [PATCH v2 3/3] scsi: reduce CONFIG_SCSI_CONSTANTS=y impact by 8k Rasmus Villemoes
2015-12-22 20:25   ` Douglas Gilbert
2015-11-24 15:09 ` [PATCH v2 0/3] " Hannes Reinecke
2015-12-22 20:25 ` Douglas Gilbert
2016-03-08 19:52 ` Rasmus Villemoes
2016-03-22  7:54   ` Christoph Hellwig
2016-03-22 19:32     ` [PATCH v3 " Rasmus Villemoes
2016-03-22 19:32       ` [PATCH v3 1/3] scsi: make some Additional Sense strings more grep'able Rasmus Villemoes
2016-03-22 19:32       ` [PATCH v3 2/3] scsi: move Additional Sense Codes to separate file Rasmus Villemoes
2016-03-22 19:32       ` [PATCH v3 3/3] scsi: reduce CONFIG_SCSI_CONSTANTS=y impact by 8k Rasmus Villemoes
2016-03-23  7:39       ` [PATCH v3 0/3] " Christoph Hellwig
2016-03-23 20:50       ` Martin K. Petersen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5679B1B1.5050206@interlog.com \
    --to=dgilbert@interlog.com \
    --cc=JBottomley@odin.com \
    --cc=bart.vanassche@sandisk.com \
    --cc=hare@suse.de \
    --cc=hch@infradead.org \
    --cc=julian.calaby@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-scsi@vger.kernel.org \
    --cc=linux@rasmusvillemoes.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome