OSDN Git Service

scsi: target: core: Silence the message about unknown VPD pages
authorKonstantin Shelekhin <k.shelekhin@yadro.com>
Mon, 18 Apr 2022 21:26:22 +0000 (00:26 +0300)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 26 Apr 2022 02:33:36 +0000 (22:33 -0400)
Target does not support some VPD pages and is very verbose about it.
Sometimes initiators don't bother and just keep sending the same request
from time to time, filling up the logs.

This patch lowers the message priority to debug.

Link: https://lore.kernel.org/r/20220418212622.275516-1-k.shelekhin@yadro.com
Signed-off-by: Konstantin Shelekhin <k.shelekhin@yadro.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/target/target_core_spc.c

index 4c76498..c14441c 100644 (file)
@@ -769,7 +769,7 @@ spc_emulate_inquiry(struct se_cmd *cmd)
                }
        }
 
-       pr_err("Unknown VPD Code: 0x%02x\n", cdb[2]);
+       pr_debug("Unknown VPD Code: 0x%02x\n", cdb[2]);
        ret = TCM_INVALID_CDB_FIELD;
 
 out: