From mboxrd@z Thu Jan 1 00:00:00 1970 From: Martin Wilck Subject: [PATCH v3 14/24] libmultipath: decrease log level for failed VPD c9 Date: Mon, 10 Dec 2018 10:49:49 +0100 Message-ID: <20181210094959.11338-15-mwilck@suse.com> References: <20181210094959.11338-1-mwilck@suse.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20181210094959.11338-1-mwilck@suse.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com To: Christophe Varoqui Cc: dm-devel@redhat.com, Martin Wilck List-Id: dm-devel.ids It's normal that SCSI devices don't support this page. Only RDAC devices need it. Reviewed-by: Benjamin Marzinski Signed-off-by: Martin Wilck --- libmultipath/discovery.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libmultipath/discovery.c b/libmultipath/discovery.c index 1c87277f..7f983a63 100644 --- a/libmultipath/discovery.c +++ b/libmultipath/discovery.c @@ -1106,7 +1106,9 @@ get_vpd_sgio (int fd, int pg, char * str, int maxlen) memset(buff, 0x0, 4096); if (sgio_get_vpd(buff, 4096, fd, pg) < 0) { - condlog(3, "failed to issue vpd inquiry for pg%02x", + int lvl = pg == 0x80 || pg == 0x83 ? 3 : 4; + + condlog(lvl, "failed to issue vpd inquiry for pg%02x", pg); return -errno; } -- 2.19.2