Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp4616277rwb; Mon, 31 Jul 2023 09:26:58 -0700 (PDT) X-Google-Smtp-Source: APBJJlGftlU+uqALF3nJrioDHQgjeXucUqt/ii6svysUYLUdO044lpFGlQqkyrDev09TEqWmYyjp X-Received: by 2002:a05:6a00:1394:b0:666:c1ae:3b87 with SMTP id t20-20020a056a00139400b00666c1ae3b87mr15510593pfg.12.1690820817736; Mon, 31 Jul 2023 09:26:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690820817; cv=none; d=google.com; s=arc-20160816; b=JxRpK/TI931EFX9qHFHUbqY3C4S+k7NCMW4OIyYSYQeV2r5yQ6VTUaDbCTI85Kjkyr Lq3VjZTpxu+72aiJj2SKoF8P3eQmogMYQeNNUTHaSo1QPq84PVvNewTS0jkIK4gF38Ra eagU4H2PYzYeGQh5Vvr7Dhq7/iylPzq2So+v9yEiuVPAwd0/SJ+hPYl134FxFYLKTC+B ZPlCcOtpSAigKX2Y7Rivz4WDLiuPFYcrmP27hHyJz7eRWQQS2p8QjkvdLOd64L8uXQDE fLaw1utDNDzMDxgUtuPtTrWEEfD+l8VL7ns1KjKDWnMyg/h8oWFC15tUcW8qEpU0GM3/ wn6A== 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=HSCdq/XOaR0rkNXqZSJLXjUc3/49iDtaf7K7yp7okHY=; fh=oPFVAToQkY6bsl1Vt24pO33VB3QR8tT4rK/qyEfOsuk=; b=iNDO4RgWo5SF0wIaJGrsl+y2W3ZAsWwkJNLEXk++s4Z4YATbWlXK8EZUtK7C1Aa4SS CAZir6eyv56m04waHOxpYrvEKVy4bDD+DXknCXZrLjgsG3tOwpLPcOzFv8szJIJ7dCXz ECH3wcFAogSfWcApeZCejoDjSgHk7i5KTgpOSF5RjyUiPm2JBZpBFAO5Di/i2RmTmwLT VmatLwnvG2zApMP6OpMq9wxUe49yCCbaAso/o82UU/ndEJFSgwsQlEikopkn6YNzfy/5 XyDYnPwBV027JnrbgDV7ca4O8exi67o4SVtn+kBCbxDHGy+rYWMcJNd4iNmSK5bYFRxR rQBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b="o//aJLy+"; 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 z8-20020a637e08000000b005638b026f6bsi7236578pgc.522.2023.07.31.09.26.45; Mon, 31 Jul 2023 09:26:57 -0700 (PDT) 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="o//aJLy+"; 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 S232168AbjGaPnQ (ORCPT + 99 others); Mon, 31 Jul 2023 11:43:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52538 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229811AbjGaPnP (ORCPT ); Mon, 31 Jul 2023 11:43:15 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2001:67c:2178:6::1d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4FDEF1704 for ; Mon, 31 Jul 2023 08:43:14 -0700 (PDT) Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out2.suse.de (Postfix) with ESMTP id A6B261F385; Mon, 31 Jul 2023 15:43:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1690818192; 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=HSCdq/XOaR0rkNXqZSJLXjUc3/49iDtaf7K7yp7okHY=; b=o//aJLy+c8XBT5AeXc0zYSTt5MECDI3oLX9V9ekoSDIx63EDXJxOTfAruevvLmMkGAVYBG XMAiCWCWCau7KCiP43cwja178G/Me4FtWMjfdZd4hYuhUfG6hgFoSr7GDadyhfy7Z+B3n6 Z/GYyEXFqeBOng7tNL+H2F8liawm+1E= 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 7AE6E2C142; Mon, 31 Jul 2023 15:43:12 +0000 (UTC) Date: Mon, 31 Jul 2023 17:43:12 +0200 From: Petr Mladek To: John Ogness Cc: Sergey Senozhatsky , Steven Rostedt , Thomas Gleixner , linux-kernel@vger.kernel.org Subject: Re: [PATCH printk v2 2/8] printk: Provide debug_store() for nbcon debugging Message-ID: References: <20230728000233.50887-1-john.ogness@linutronix.de> <20230728000233.50887-3-john.ogness@linutronix.de> <87leez92ej.fsf@jogness.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87leez92ej.fsf@jogness.linutronix.de> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Fri 2023-07-28 23:07:08, John Ogness wrote: > On 2023-07-28, Petr Mladek wrote: > >> + r = vprintk_store(2, 7, NULL, fmt, args); > > > > We should probably use one of the LOG_LOCALX numbers, e.g. > > > > #define LOG_LOCAL0 (16<<3) > > > > Also, please use LOGLEVEL_DEBUG instead of the hard coded "7". > > OK. > > I am also open to dropping the function and its use. When developing the > ringbuffer I also had a similar function but never attempted to publish > it. It is useful for developing/testing/debugging, but once everything > works as it should it has no real purpose. I have no problems keeping > the debug stuff hidden in my own private toolbox. I do not mind to add this patch. It is actually pretty interesting function. I wonder if it might inspire anyone for using this approach for some other reasons. Best Regards, Petr