Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp1819806rwb; Fri, 28 Jul 2023 15:57:05 -0700 (PDT) X-Google-Smtp-Source: APBJJlHGxrgjGtfctVSxTq5+yYwVveG2ILLxIYfSAS1opqUICtwiPZ9K0SdOvuCNkzN2Y2FvSJLq X-Received: by 2002:a17:903:247:b0:1b8:4ec2:5200 with SMTP id j7-20020a170903024700b001b84ec25200mr3322434plh.2.1690585025098; Fri, 28 Jul 2023 15:57:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690585025; cv=none; d=google.com; s=arc-20160816; b=Aw/HEwjJXl+Tcy9zSBSmwamYUv3/AcPkQiPxqWtK/ulYKJL7yfOKYa1gjHgwINnbXy 5PGgjMclwmLppakR42L0yu/mo/wX6psYa5TTey47Oh2FFi5+omHM0hfvYsWQGhvZI0E9 3GFVTvLKgbksPPuc7Tcm4BoJViU5D1qoM9wuTkqYXYc6/ZzKiDtvGturldGBXoWk2X2g X3FJEBpmx2UheF0pIjILk8+YBStYfd7pAOEvTxXZz3h3mcDzDig6Btm2dZv5CYcy0xhv Mwv0pgeIbsqDIts2Y5ach3C0EFCzfxk2IvgLE8RDUI64eio62pmRPnDyE5LuqKZOWr8Z iHgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:dkim-signature:dkim-signature:from; bh=UceUlWS7Yzd9COUx2am7MAGc24C7rk/CQ0rNrL2ZS4U=; fh=HVRBJStvoKWbFco6Jta18xe5UAVCwWVs9OvJstciom4=; b=1DEFdVwpL/br8GkT8wGjJFhsg+UBbKDuA8RVSSRR1DbsvbPYitAq7x4ykyimcrMMJt yzCl74jXCFR2/Y8aVbUOQLnHrUvxOJx7fVirs/QRS1zNRnwF49VRqLQWjHAXXza3bcRX HKQ3oySyhVCLmg+72Qvuxrmao2bQ0txe3b2PGYNkvfFs8tb+kVwC4HSSRgH44NnVIdod w3ZVU9/J7NVrjDdcvpeP3HLX1wSGS0QoBWV24Dvjzj4xyFAB2b7B7m+pJJl0+p635PmY MOirEXm0+/uH6/eQk3hUdklF+eCu524Ot+IiIHEhbRY745Qeb20DmCTnOyEGHomQ2KMc qNMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=VYTDy1qw; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; 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=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q20-20020a656854000000b00563eda6a8efsi3490892pgt.234.2023.07.28.15.56.53; Fri, 28 Jul 2023 15:57:05 -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=@linutronix.de header.s=2020 header.b=VYTDy1qw; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; 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=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232112AbjG1VBO (ORCPT + 99 others); Fri, 28 Jul 2023 17:01:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50924 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231882AbjG1VBN (ORCPT ); Fri, 28 Jul 2023 17:01:13 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3D47335B0 for ; Fri, 28 Jul 2023 14:01:12 -0700 (PDT) From: John Ogness DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1690578070; h=from:from:reply-to:subject:subject: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=UceUlWS7Yzd9COUx2am7MAGc24C7rk/CQ0rNrL2ZS4U=; b=VYTDy1qw6LTcnHTOFSj0KUQqP4ZblI0+Z9OPZPmgxnDZAhKdORaauqGPAWLEsZ0ilQLamg UsuZ2LvbwZ+7WLNtpNHQok5yOfpQ3P2x5eVU+rXgw2HBcDH6+oqMfNk41f/yiXmPuW0whM xgV2B3NIiyj5s7L6id7zLMc9JQBMWffyWcmkggwpng7qKRDDvwviE0M2b7vSDU9TG+KzoO kPDYIybl/K+fBUZmoJ0+2OESM1ePB1tfs5ytaih+PuV1TJjq5DU51SDDPYigZ80cbQj+6T 8HiEnRmaPYGgerHGy4kHKHlzBTvtLjIDSrVmG3y1zDcC6LCx/6nyZiPCzKnJzA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1690578070; h=from:from:reply-to:subject:subject: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=UceUlWS7Yzd9COUx2am7MAGc24C7rk/CQ0rNrL2ZS4U=; b=HLUMZ8vH+JbwLWcqSvT3+9MRYJxdeKu17BvWTPpn9qH46D2lg1sqrTkRB+xbp2WrlhFFac 5+bmbsbPY5WDOTCg== To: Petr Mladek 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 In-Reply-To: References: <20230728000233.50887-1-john.ogness@linutronix.de> <20230728000233.50887-3-john.ogness@linutronix.de> Date: Fri, 28 Jul 2023 23:07:08 +0206 Message-ID: <87leez92ej.fsf@jogness.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,INVALID_DATE_TZ_ABSURD, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=no 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 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. John