From patchwork Wed Jun 10 05:24:25 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amitay Isaacs X-Patchwork-Id: 1306460 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 49hb6C6jfmz9sSF for ; Wed, 10 Jun 2020 15:25:07 +1000 (AEST) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=ozlabs.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; secure) header.d=ozlabs.org header.i=@ozlabs.org header.a=rsa-sha256 header.s=201707 header.b=pW32IUfL; dkim-atps=neutral Received: from bilbo.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 49hb6C4Qr4zDqXs for ; Wed, 10 Jun 2020 15:25:07 +1000 (AEST) X-Original-To: pdbg@lists.ozlabs.org Delivered-To: pdbg@lists.ozlabs.org Received: from ozlabs.org (bilbo.ozlabs.org [IPv6:2401:3900:2:1::2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 49hb5g1ywdzDqMF for ; Wed, 10 Jun 2020 15:24:39 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=ozlabs.org Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=ozlabs.org header.i=@ozlabs.org header.a=rsa-sha256 header.s=201707 header.b=pW32IUfL; dkim-atps=neutral Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 49hb5f5RZHz9sSS; Wed, 10 Jun 2020 15:24:38 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ozlabs.org; s=201707; t=1591766679; bh=sNn37WTE1cHaoAOlnL5R3xouzGjwNNpWzkB5dw+MOCo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=pW32IUfLLJ+rZy1sz5y4dxWl+6Gzr3nqa/PBoIcWXFlQKQ3M92DhTOb1UBXIGes3P kBdkwx6yamESeQ5fla1U4CRlih7xLWIg5bsKAmg5MKe5+6CbvV38hKn6DRdpjHiQWt KWbpNR3zrTxcRSZi5q3/g0c8RSMwLoqKw1naYGmbjnC7WBleHzcOT+DhztulzijTgP CFQS+0YNjh3u2vUHkBxrPWtMgEG5QpxEJEp4yiUthfosAYDfdxlNW6CDu8XB3H1FU2 DC7jhiNikuQI0tU3B3OhTnpNEYLCpAriHrNnNBClI2dhPWtUamuarKm32yyOcAOK/+ gJVYKGqLUJ0jA== From: Amitay Isaacs To: pdbg@lists.ozlabs.org Date: Wed, 10 Jun 2020 15:24:25 +1000 Message-Id: <20200610052426.150225-7-amitay@ozlabs.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200610052426.150225-1-amitay@ozlabs.org> References: <20200610052426.150225-1-amitay@ozlabs.org> MIME-Version: 1.0 Subject: [Pdbg] [PATCH v2 6/7] libpdbg: If device path does not exist, log at INFO level X-BeenThere: pdbg@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "mailing list for https://github.com/open-power/pdbg development" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Amitay Isaacs Errors-To: pdbg-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Pdbg" Signed-off-by: Amitay Isaacs Reviewed-by: Alistair Popple --- libpdbg/kernel.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libpdbg/kernel.c b/libpdbg/kernel.c index c63ef93..b2b977b 100644 --- a/libpdbg/kernel.c +++ b/libpdbg/kernel.c @@ -186,7 +186,7 @@ int kernel_fsi_probe(struct pdbg_target *target) } } - PR_ERROR("Unable to open %s\n", path); + PR_INFO("Unable to open %s\n", path); free(path); return -1; } @@ -250,7 +250,7 @@ static int kernel_pib_probe(struct pdbg_target *target) pib->fd = open(scom_path, O_RDWR | O_SYNC); if (pib->fd < 0) { - PR_ERROR("Unable to open %s\n", scom_path); + PR_INFO("Unable to open %s\n", scom_path); return -1; }