All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] bnx2fc: Show information about log levels in 'modinfo'
@ 2016-01-29 14:39 Jose Castillo
  2016-01-29 20:50 ` Chad Dupuis
  2016-02-02  1:49 ` Martin K. Petersen
  0 siblings, 2 replies; 3+ messages in thread
From: Jose Castillo @ 2016-01-29 14:39 UTC (permalink / raw)
  To: QLogic-Storage-Upstream, James E.J. Bottomley, linux-scsi

This patch adds the information of the different values that can be used
in the module parameter 'debug_logging', as it is shown below:

$ modinfo bnx2fc
[...]
parm:           debug_logging:Option to enable extended logging,
		Default is 0 - no logging.
		0x01 - SCSI cmd error, cleanup.
		0x02 - Session setup, cleanup, etc.
		0x04 - lport events, link, mtu, etc.
		0x08 - ELS logs.
		0x10 - fcoe L2 fame related logs.
		0xff - LOG all messages. (int)

Signed-off-by: Jose Castillo <jcastillo@redhat.com>
---
 drivers/scsi/bnx2fc/bnx2fc_fcoe.c | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/drivers/scsi/bnx2fc/bnx2fc_fcoe.c b/drivers/scsi/bnx2fc/bnx2fc_fcoe.c
index 67405c6..d7029ea 100644
--- a/drivers/scsi/bnx2fc/bnx2fc_fcoe.c
+++ b/drivers/scsi/bnx2fc/bnx2fc_fcoe.c
@@ -97,6 +97,15 @@ static void __exit bnx2fc_mod_exit(void);
 
 unsigned int bnx2fc_debug_level;
 module_param_named(debug_logging, bnx2fc_debug_level, int, S_IRUGO|S_IWUSR);
+MODULE_PARM_DESC(debug_logging,
+		"Option to enable extended logging,\n"
+		"\t\tDefault is 0 - no logging.\n"
+		"\t\t0x01 - SCSI cmd error, cleanup.\n"
+		"\t\t0x02 - Session setup, cleanup, etc.\n"
+		"\t\t0x04 - lport events, link, mtu, etc.\n"
+		"\t\t0x08 - ELS logs.\n"
+		"\t\t0x10 - fcoe L2 fame related logs.\n"
+		"\t\t0xff - LOG all messages.");
 
 static int bnx2fc_cpu_callback(struct notifier_block *nfb,
 			     unsigned long action, void *hcpu);
-- 
2.1.0


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] bnx2fc: Show information about log levels in 'modinfo'
  2016-01-29 14:39 [PATCH] bnx2fc: Show information about log levels in 'modinfo' Jose Castillo
@ 2016-01-29 20:50 ` Chad Dupuis
  2016-02-02  1:49 ` Martin K. Petersen
  1 sibling, 0 replies; 3+ messages in thread
From: Chad Dupuis @ 2016-01-29 20:50 UTC (permalink / raw)
  To: Jose Castillo; +Cc: QLogic-Storage-Upstream, James E.J. Bottomley, linux-scsi


On Fri, 29 Jan 2016, Jose Castillo wrote:

> This patch adds the information of the different values that can be used
> in the module parameter 'debug_logging', as it is shown below:
>
> $ modinfo bnx2fc
> [...]
> parm:           debug_logging:Option to enable extended logging,
> 		Default is 0 - no logging.
> 		0x01 - SCSI cmd error, cleanup.
> 		0x02 - Session setup, cleanup, etc.
> 		0x04 - lport events, link, mtu, etc.
> 		0x08 - ELS logs.
> 		0x10 - fcoe L2 fame related logs.
> 		0xff - LOG all messages. (int)
>
> Signed-off-by: Jose Castillo <jcastillo@redhat.com>
> ---
> drivers/scsi/bnx2fc/bnx2fc_fcoe.c | 9 +++++++++
> 1 file changed, 9 insertions(+)
>
> diff --git a/drivers/scsi/bnx2fc/bnx2fc_fcoe.c b/drivers/scsi/bnx2fc/bnx2fc_fcoe.c
> index 67405c6..d7029ea 100644
> --- a/drivers/scsi/bnx2fc/bnx2fc_fcoe.c
> +++ b/drivers/scsi/bnx2fc/bnx2fc_fcoe.c
> @@ -97,6 +97,15 @@ static void __exit bnx2fc_mod_exit(void);
>
> unsigned int bnx2fc_debug_level;
> module_param_named(debug_logging, bnx2fc_debug_level, int, S_IRUGO|S_IWUSR);
> +MODULE_PARM_DESC(debug_logging,
> +		"Option to enable extended logging,\n"
> +		"\t\tDefault is 0 - no logging.\n"
> +		"\t\t0x01 - SCSI cmd error, cleanup.\n"
> +		"\t\t0x02 - Session setup, cleanup, etc.\n"
> +		"\t\t0x04 - lport events, link, mtu, etc.\n"
> +		"\t\t0x08 - ELS logs.\n"
> +		"\t\t0x10 - fcoe L2 fame related logs.\n"
> +		"\t\t0xff - LOG all messages.");
>
> static int bnx2fc_cpu_callback(struct notifier_block *nfb,
> 			     unsigned long action, void *hcpu);
>

Looks good, thanks.

Acked-by: Chad Dupuis <chad.dupuis@qlogic.com>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] bnx2fc: Show information about log levels in 'modinfo'
  2016-01-29 14:39 [PATCH] bnx2fc: Show information about log levels in 'modinfo' Jose Castillo
  2016-01-29 20:50 ` Chad Dupuis
@ 2016-02-02  1:49 ` Martin K. Petersen
  1 sibling, 0 replies; 3+ messages in thread
From: Martin K. Petersen @ 2016-02-02  1:49 UTC (permalink / raw)
  To: Jose Castillo; +Cc: QLogic-Storage-Upstream, James E.J. Bottomley, linux-scsi

>>>>> "Jose" == Jose Castillo <jcastillo@redhat.com> writes:

Jose> This patch adds the information of the different values that can
Jose> be used in the module parameter 'debug_logging', as it is shown
Jose> below:

Applied to 4.6/scsi-queue.

Thanks!

-- 
Martin K. Petersen	Oracle Linux Engineering

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-02-02  1:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-01-29 14:39 [PATCH] bnx2fc: Show information about log levels in 'modinfo' Jose Castillo
2016-01-29 20:50 ` Chad Dupuis
2016-02-02  1:49 ` Martin K. Petersen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.