From patchwork Mon Jul 1 07:51:25 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alistair Popple X-Patchwork-Id: 1125117 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) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 45cfhM6fGlz9s4V for ; Mon, 1 Jul 2019 17:51:31 +1000 (AEST) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=popple.id.au Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 45cfhM4vl0zDqSv for ; Mon, 1 Jul 2019 17:51:31 +1000 (AEST) X-Original-To: pdbg@lists.ozlabs.org Delivered-To: pdbg@lists.ozlabs.org Received: from ozlabs.org (bilbo.ozlabs.org [203.11.71.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 45cfhH2SYQzDqSG for ; Mon, 1 Jul 2019 17:51:27 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=popple.id.au Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 45cfhH04BVz9s3Z; Mon, 1 Jul 2019 17:51:27 +1000 (AEST) From: Alistair Popple To: pdbg@lists.ozlabs.org Date: Mon, 1 Jul 2019 17:51:25 +1000 Message-Id: <20190701075125.1986-1-alistair@popple.id.au> X-Mailer: git-send-email 2.11.0 Subject: [Pdbg] [PATCH] libpdbg: Change default log level to print warnings 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: , MIME-Version: 1.0 Errors-To: pdbg-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Pdbg" The log level currently defaults to only printing errors, however library users likely still want to know about warnings unless an application has explicitly silenced them by changing the default log level or setting a logging function. Signed-off-by: Alistair Popple Reviewed-by: Amitay Isaacs --- libpdbg/debug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libpdbg/debug.c b/libpdbg/debug.c index 64f41f6..679b035 100644 --- a/libpdbg/debug.c +++ b/libpdbg/debug.c @@ -19,7 +19,7 @@ #include "debug.h" -static int pdbg_loglevel = PDBG_ERROR; +static int pdbg_loglevel = PDBG_WARNING; static void pdbg_logfunc_default(int loglevel, const char *fmt, va_list ap) {