Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp11636886rwl; Tue, 3 Jan 2023 02:22:07 -0800 (PST) X-Google-Smtp-Source: AMrXdXuMO8AtmJXv9HCKrGCaY+crejeZ0VKXQ/fEebP15w0v6/BIiIdh9lON7SvpUW+8LIst1MHo X-Received: by 2002:a17:90a:a597:b0:226:587:7911 with SMTP id b23-20020a17090aa59700b0022605877911mr27259028pjq.20.1672741327007; Tue, 03 Jan 2023 02:22:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672741326; cv=none; d=google.com; s=arc-20160816; b=mebaaI7/vrGoFMT+C43yaX7GIUiwT/+sNazjZo0JAtFkmZaWhwSideBKvQq7Isk1zZ J01rcjGfPIRwRuaz6pxJF9WPF4n4K2gvtoz4dntW9yYxZ8nSotjVt8yNV7todsccmLMu rN+0fGVbcQGUL2aVX9q0j2A0GwYR7QERib4WJNX7Zfz2YY/w/renLIIBCDuWjaz5rNmX hpJwnMswVb1X6VQhkBXB8f9E5QXKaD0of6o3LT/3ChLKX2c43+rZWNkuRPQ2c/zoPzL8 GX1JQDOve/1RyJ03OaXiPVDhigOUfEIYb5f7nLAUsbQVbDReWeuZ6UumZcynIE22We2v RwWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=INe1fRfDJG3P7PcSGiSjhLagJ0XMpmhGUZjZv1725PQ=; b=QTGIylSZJ300Upq4axaw2Z3kuaLdwyvqA17unY5mKVjUSF61OIFoXnPeFfHTzAt9t2 JBW90BJRnoZgOQmifj/w26TjjSwEL2J+waUrU1/VElKCWN21KErPNpvgQfB6wRHIr/Ii qqAlvAFrfiKYovANffMKvhIDvUAPZ/80h04PzHGtJADm7keRfAiiu4N7cpZmPiIcfCkb HNFxSt2HGyH7cy300thLg4hCsss94JeJN2ubBQO2wGmwmI9x6IPfA7sMwT6Qz7057+vK khXax1ZaTo5NbpHoLTSWd29BfmpNpuN+Ii3+vVxkZiVDHpnUIeN9dE1cEYP2mrWQKd8m JRvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=DyhqLbWc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u3-20020a631403000000b0045f7fc4b812si33634925pgl.295.2023.01.03.02.21.59; Tue, 03 Jan 2023 02:22:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=DyhqLbWc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236970AbjACJlr (ORCPT + 61 others); Tue, 3 Jan 2023 04:41:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58726 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232970AbjACJlo (ORCPT ); Tue, 3 Jan 2023 04:41:44 -0500 Received: from smtp-out1.suse.de (smtp-out1.suse.de [IPv6:2001:67c:2178:6::1c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6E4162D2; Tue, 3 Jan 2023 01:41:43 -0800 (PST) Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out1.suse.de (Postfix) with ESMTP id 176253824A; Tue, 3 Jan 2023 09:41:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1672738902; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=INe1fRfDJG3P7PcSGiSjhLagJ0XMpmhGUZjZv1725PQ=; b=DyhqLbWcmkJ8E4l+8lrj+YTGgJHJxZ+gwmkvvc7cJqIc481jWHw6QFzlER7icrSxINhysN WGF+kmr/GGDDMCBofEIbnTIdii8KNbAN4EgH39qeb22mI1Px3/Gl5FqQbvrYLdt9/NENk0 gxkaPnS1zbKplJ3LZMFimW73X75tWM0= Received: from suse.cz (unknown [10.100.201.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by relay2.suse.de (Postfix) with ESMTPS id 9DA752C141; Tue, 3 Jan 2023 09:41:41 +0000 (UTC) Date: Tue, 3 Jan 2023 10:41:39 +0100 From: Petr Mladek To: John Ogness Cc: Sergey Senozhatsky , Steven Rostedt , linux-kernel@vger.kernel.org, Baoquan He , Vivek Goyal , Dave Young , Jonathan Corbet , kexec@lists.infradead.org, linux-doc@vger.kernel.org, stable@vger.kernel.org Subject: Re: [PATCH] docs: gdbmacros: print newest record Message-ID: References: <20221229134339.197627-1-john.ogness@linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221229134339.197627-1-john.ogness@linutronix.de> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu 2022-12-29 14:49:39, John Ogness wrote: > @head_id points to the newest record, but the printing loop > exits when it increments to this value (before printing). > > Exit the printing loop after the newest record has been printed. > > The python-based function in scripts/gdb/linux/dmesg.py already > does this correctly. > > Fixes: e60768311af8 ("scripts/gdb: update for lockless printk ringbuffer") > Cc: stable@vger.kernel.org > Signed-off-by: John Ogness Great catch! Reviewed-by: Petr Mladek Best Regards, Petr