Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1lNRxU-0007qg-Mz for mharc-grub-devel@gnu.org; Fri, 19 Mar 2021 23:07:24 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35914) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lNRxR-0007nY-JH for grub-devel@gnu.org; Fri, 19 Mar 2021 23:07:21 -0400 Received: from mail-pj1-x102e.google.com ([2607:f8b0:4864:20::102e]:37697) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lNRxN-0002Lr-87 for grub-devel@gnu.org; Fri, 19 Mar 2021 23:07:21 -0400 Received: by mail-pj1-x102e.google.com with SMTP id x7-20020a17090a2b07b02900c0ea793940so7609372pjc.2 for ; Fri, 19 Mar 2021 20:07:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=efficientek-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=J66wmujXYuUEy6vkwMTKGCepHIjmo+pfmyQ5BlrOu+8=; b=XroZEpXk5pJwfMf4uP7b5AJp31lyTQvJKZgCr4+/LjRGo2214Fl58RRaJ1UfjxIud3 aSrJ9ixCUmaDXvrWUD4MGeH4Qq7XpulkoCrJdthWl70tkTNdBt2Bk5LrwpQEo4HHbRFq UWoM7xbCZHuBvsKQ6lTijPRnH7YIXGeaIHNGt9X3Rs/65RaA0euWfHV58Zt9MgM/DEoQ 5Q4OgptSVwMpYzF7wB/9LM3bWh7Ax4+jB8dJbXSgqEFDH891C+3w1Qf6jpsYvcLAMbVM cLcRSA5pqEHxWiqF+foeDKl2s6Elif4Ty2c6aRjQGD94BkMWuRITPJAs/WRIGFo6vmlr RyVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=J66wmujXYuUEy6vkwMTKGCepHIjmo+pfmyQ5BlrOu+8=; b=l03mK4FBYwyUy6dWX06oAL2qJHdhDK0wLrS0V2N7zHRMGk7zPKOvLqmig2Oe2u65qG doYzHsajSkLJ8XD6JUJkisUEZgFFzO4Herzf5bLGCu1zevHCl7WnK5B63i4F8bZWiI2s ENe4/YXzoSRVSh6Pwmk3wNDqf5rprTaf5JJ21km5DX4lrvUdB6ccad3dnxMZ0ZHCCugo VjZw89i8KtewBuDTwkfJRV6MO/V2yDk7jOKERnokug4lRO2zf8w4wUWW5263TtxhRV2O rdKMdSrRyhk448KCOUEYBlNrISPeFzp/jQYa8zrVYqauRbefmQf2Ufeucl44a85wEtYc 6ymQ== X-Gm-Message-State: AOAM532r07eWkBItO/vA+Mun4M9/bIy50+Mw4SRN9eDSuH67L2gmff9B i0QnXbbIfKL5vRz5xqof338b11RvcvVbvw== X-Google-Smtp-Source: ABdhPJy0UvCLNo7Z8iBn5oCmjEBDJdoQ24S/JDCMAB6Cr5DnrTCtclPXpmxMOSoFRDnsQHiWbuMUWg== X-Received: by 2002:a17:902:c246:b029:e4:63a6:e8d2 with SMTP id 6-20020a170902c246b02900e463a6e8d2mr16799375plg.51.1616209635465; Fri, 19 Mar 2021 20:07:15 -0700 (PDT) Received: from localhost.localdomain ([2605:a601:ab16:db00:2328:d973:f35b:5c6b]) by smtp.gmail.com with ESMTPSA id a20sm7096092pfl.97.2021.03.19.20.07.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Mar 2021 20:07:15 -0700 (PDT) From: Glenn Washburn To: grub-devel@gnu.org, Daniel Kiper Cc: Glenn Washburn Subject: [PATCH 2/4] misc: Add debug log condition to log output Date: Fri, 19 Mar 2021 22:06:47 -0500 Message-Id: <51679662a6c3be5ca6715fcf7b93795487b07f44.1616208843.git.development@efficientek.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::102e; envelope-from=development@efficientek.com; helo=mail-pj1-x102e.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Mar 2021 03:07:21 -0000 When debugging using the "all" condition frequently gives way too much info. So selecting a subset of conditions is desirable. This change makes it easier to identify which conditions are desired. Before this change log messages needed to be looked up in the source code to find the condition used. Signed-off-by: Glenn Washburn --- grub-core/kern/misc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/grub-core/kern/misc.c b/grub-core/kern/misc.c index 3af336ee2..11b8592c8 100644 --- a/grub-core/kern/misc.c +++ b/grub-core/kern/misc.c @@ -182,7 +182,7 @@ grub_real_dprintf (const char *file, const int line, const char *condition, if (grub_debug_enabled (condition)) { - grub_printf ("%s:%d: ", file, line); + grub_printf ("%s:%d:%s: ", file, line, condition); va_start (args, fmt); grub_vprintf (fmt, args); va_end (args); -- 2.27.0