OSDN Git Service

scsi: tcmu: Don't pass KERN_ERR to pr_err
authorMike Christie <mchristi@redhat.com>
Tue, 26 Jun 2018 16:47:20 +0000 (11:47 -0500)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 26 Jun 2018 16:55:08 +0000 (12:55 -0400)
Fix warning:

smatch warnings:
drivers/target/target_core_user.c:301 tcmu_genl_cmd_done() warn: KERN_*
level not at start of string

Signed-off-by: Mike Christie <mchristi@redhat.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/target/target_core_user.c

index 9555981..847707a 100644 (file)
@@ -383,7 +383,7 @@ static int tcmu_genl_cmd_done(struct genl_info *info, int completed_cmd)
        }
 
        if (!udev) {
-               pr_err(KERN_ERR "tcmu nl cmd %u/%d completion could not find device with dev id %u.\n",
+               pr_err("tcmu nl cmd %u/%d completion could not find device with dev id %u.\n",
                       completed_cmd, rc, dev_id);
                ret = -ENODEV;
                goto unlock;