bnx2fc: Show information about log levels in 'modinfo'
Subsystems (2)
PATCH 1/1 bnx2fc: Show information about log levels in 'modinfo'
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 <[email protected]>
--- drivers/scsi/bnx2fc/bnx2fc_fcoe.c | 9 +++++++++ 1 file changed, 9 insertions(+)
drivers/scsi/bnx2fc/bnx2fc_fcoe.c +9 -0
@@ -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);
Signature · 1 line
2.1.0
Quoted 30 lines · Jose Castillo
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 <[email protected]>---
drivers/scsi/bnx2fc/bnx2fc_fcoe.c| 9 +++++++++1 file changed, 9 insertions(+)drivers/scsi/bnx2fc/bnx2fc_fcoe.c +2
-0@@ -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"
drivers/scsi/bnx2fc/bnx2fc_fcoe.c static void __exit bnx2fc_mod_exit(void); · line 111
Quoted 10 lines
drivers/scsi/bnx2fc/bnx2fc_fcoe.c +7
-0+"\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 <[email protected]>
Martin K. Petersen
AppliedQuoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Jose" == Jose Castillo <[email protected]> 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!
Signature · 1 line
Martin K. Petersen Oracle Linux Engineering