From patchwork Thu Nov 15 10:20:27 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Garry X-Patchwork-Id: 151221 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp6808824ljp; Thu, 15 Nov 2018 02:19:34 -0800 (PST) X-Google-Smtp-Source: AJdET5dC94loei622HMTm2hUENafxJZbSbfZD/6PCCqG3kz+URCdNtfi771VO3J8QJEZJo9RBHnj X-Received: by 2002:a62:4e88:: with SMTP id c130-v6mr5725473pfb.141.1542277174422; Thu, 15 Nov 2018 02:19:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542277174; cv=none; d=google.com; s=arc-20160816; b=TgD1OG9X7vwdZzeWdS0oSiK9q27IUqtk9vn2cuycj9ZUNxMr94PnElerM9tuVdj8E8 aznDW1dGzac2zskW4VWKWdjs0I9cF8xn6wiCgow8XVkAqJrvZ0M/ypOpvWDvCcF5a0Ip i1P6IemoaqTmqnA/9raMqRak4p1AS0GBTYGX1xh02OjsXJrSFQMpU9qzwOvbvUqUlBeJ oSmR/gZXb1cUVlZgeMam+WTeZlwR+oaNXRy3tWKnRf3mXcqfBC5OrVCkb7D2BNSK2HKs q3V7IyT191KObSjO192Tb7701Iu7QhEVr6Fod2k0ZKTdWRIY/aQ34mlPSF0L5G8IJjWH 8Gag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=ld4gb0En9nGq/217btdoICLkyA4sqz7DB0CDuu2wwGs=; b=sbSBTgNEOi7HMXUbI8Jg/pTvMRfKH2X+9qHtuTBZnBN6VzkMASLPuL68mSNAkKWnkL z+zgXcN4ghn50HLKyaNX73+iuFdYcjnnSG6y/36dBI2eoxcls0cvEcSswRwLrBezBNvb y46ZFJziA8ZjAuhVHagq2fpE3bMrNbzOiDXQNy2SWeXQ43N5BTAkc6OerPqdsg9uzpMO zWYINkFYQyU3gZjBtWzyveHudqOP5NN4MKPUJ5RcjdkeWcci/63RipYT/Ivrhqn5dKA2 GjOEFzJx8+iLwhecF2uoIMI2ZXyd1E4IsHO66ZJcdEL0qGwQxwo++usc9O4+JbjmQks9 AkFQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x2-v6si26986236pln.202.2018.11.15.02.19.34; Thu, 15 Nov 2018 02:19:34 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388210AbeKOU0o (ORCPT + 32 others); Thu, 15 Nov 2018 15:26:44 -0500 Received: from szxga05-in.huawei.com ([45.249.212.191]:14664 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2387647AbeKOU0n (ORCPT ); Thu, 15 Nov 2018 15:26:43 -0500 Received: from DGGEMS413-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 47480854D6948; Thu, 15 Nov 2018 18:19:14 +0800 (CST) Received: from localhost.localdomain (10.67.212.75) by DGGEMS413-HUB.china.huawei.com (10.3.19.213) with Microsoft SMTP Server id 14.3.408.0; Thu, 15 Nov 2018 18:19:07 +0800 From: John Garry To: , CC: , , , , , , John Garry Subject: [PATCH v2 0/5] libsas: Some logging tidy-up Date: Thu, 15 Nov 2018 18:20:27 +0800 Message-ID: <1542277232-135789-1-git-send-email-john.garry@huawei.com> X-Mailer: git-send-email 2.8.1 MIME-Version: 1.0 X-Originating-IP: [10.67.212.75] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patchset presents some logging tidy-up, namely removing the printk wrappers and using pr_XXX() instead. In addition, some log levels are revised, as previous levels (generally debug) were too low. Finally a referece to "pci" is removed from a log, and unreferenced dump files are deleted. Differences v1->v2: - Reunited strings to a single line - fixed "sas: sas:" prefix in messages John Garry (5): scsi: libsas: Delete sas_dump.{c, h} scsi: libsas: Use pr_fmt(fmt) scsi: libsas: Drop sas_printk() scsi: libsas: Drop SAS_DPRINTK() and revise logs levels scsi: libsas: Remove pcidev reference drivers/scsi/libsas/Makefile | 3 +- drivers/scsi/libsas/sas_ata.c | 26 ++-- drivers/scsi/libsas/sas_discover.c | 33 +++-- drivers/scsi/libsas/sas_dump.c | 63 ---------- drivers/scsi/libsas/sas_dump.h | 29 ----- drivers/scsi/libsas/sas_event.c | 1 - drivers/scsi/libsas/sas_expander.c | 236 +++++++++++++++++------------------- drivers/scsi/libsas/sas_init.c | 10 +- drivers/scsi/libsas/sas_internal.h | 16 ++- drivers/scsi/libsas/sas_phy.c | 8 +- drivers/scsi/libsas/sas_port.c | 23 ++-- drivers/scsi/libsas/sas_scsi_host.c | 123 +++++++++---------- drivers/scsi/libsas/sas_task.c | 10 +- 13 files changed, 233 insertions(+), 348 deletions(-) delete mode 100644 drivers/scsi/libsas/sas_dump.c delete mode 100644 drivers/scsi/libsas/sas_dump.h -- 1.9.1