Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp6738621pxb; Wed, 17 Feb 2021 12:05:30 -0800 (PST) X-Google-Smtp-Source: ABdhPJwIP/gKUs/MQMSw3njULjqmhXJL8tSmD/ptbPPhbFQpIdnBeZFkOv3nk4zh47MJGf8r31sP X-Received: by 2002:aa7:c044:: with SMTP id k4mr497206edo.47.1613592330745; Wed, 17 Feb 2021 12:05:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613592330; cv=none; d=google.com; s=arc-20160816; b=ZepEpBZBjR1BhT5C45Rpi4PrFveg34p4ULvc9vYiHhV91YlCaJdNHxx966VgI6H610 IQupzUO5qQ9Tpd5jAxPkL0jSSrb+fKpo4FQNEb7gHoRRqvWs9ZwBmfzy8NvUWaqOEE0J aBvtQBQ9UVRHBGt6G/ufyKL5vLf5vqLIwSAlftN69VTuZlot5/L6YVFnQSBR33swKjpb IR4VZ0uNDXfncZehG8MHvWgLgijidOvtH87NTKtOj2PQP1yHf40KEboPveIG0majvu5S IAFJfRbMPmavG1xVAZEHrFGzk0WFoOvrV5wC6c0AVL0hQangWAtGlg0087IQmW2lNxEt /1lw== 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=QCz5c6Vj3j++ulPRAaUvRc9melH6ifWxWMvaz0/sclE=; b=JIxEKjlQh7SorR5S+ZSaIX747sOea+xOqUo9TCeg9bXWHLi17lotW2YgmkU1CnkPmO AqPgFuFPAZ9R0zRQnppZMG+Y2aHNky7M08PlLINWik91Q+fMqBTVEnHDAL4RRnP5Emk1 7TFfBvJHwrhmGOQY7tZ9oLP/jTgbhdkJl7FVu93VQHdHPSs627nR3sUQ25eLbNz9yGZf RTEfYNwXZt97ZZD52+f6caoD05YLILv4vrO5sj71izbQdzJVO16YvPcGFOgXV+LdDP0n Qr4QApFYAbEapbq+dRhYBgHecL6wlbtbiL9R69/N1WvNqVaTzFUNlyqTdJUgy+fXj0Pj VuhQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cmpxchg-org.20150623.gappssmtp.com header.s=20150623 header.b=N1kQ17eO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=cmpxchg.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f16si2141656eja.263.2021.02.17.12.05.04; Wed, 17 Feb 2021 12:05:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@cmpxchg-org.20150623.gappssmtp.com header.s=20150623 header.b=N1kQ17eO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=cmpxchg.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233953AbhBQQBC (ORCPT + 99 others); Wed, 17 Feb 2021 11:01:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39746 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233568AbhBQQBA (ORCPT ); Wed, 17 Feb 2021 11:01:00 -0500 Received: from mail-qk1-x72f.google.com (mail-qk1-x72f.google.com [IPv6:2607:f8b0:4864:20::72f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9139DC061756 for ; Wed, 17 Feb 2021 08:00:20 -0800 (PST) Received: by mail-qk1-x72f.google.com with SMTP id c3so12546608qkj.11 for ; Wed, 17 Feb 2021 08:00:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cmpxchg-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=QCz5c6Vj3j++ulPRAaUvRc9melH6ifWxWMvaz0/sclE=; b=N1kQ17eOPAiq7GhlylmQGB2qUgmwjmAl7mo3niD0Cbg+YI8sNgLiS/0izE8v4Ju7jj AXYSc2ekH0/g9t0dCZzN7nJQt3yMGgpoE2E7xOqNgx9JrxJpNuSeYXK/EkgxuJrZjoJ1 CzSbClxXg77Fh8Lg8lznnvqAyI/TKOinKuw/uTXhPREBaASB6rLyR1L6hZenEt3slMi8 2HFQ2dm+ifXmdynt6P1NLiExhsjWgNNOSv8Q9vIdTG6gc++sCZiQbD29Zg1dJo4X2Uwt g2/7lzxN4ecWIMyCi7DJjZ5m54CmdmfmcTkbnyDVFatNwTY6G4LzJ+O7XQmK0uFWQ2bx fSzw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=QCz5c6Vj3j++ulPRAaUvRc9melH6ifWxWMvaz0/sclE=; b=kAW2VZ8QYX+z52mQ4L3D7jsBMA6o0da12c7KzYVp/+Qj5/FAtr7M6nd3O3pE2XLrPF laOJndZnySOiSbnExYxaOpF1fUE8cGYCTiS79o7QYoYjj+n+QEdKwVwerpISo3D4Xrn+ j6vZSRcJiYcZvK+3MSYHROcw/oeUihV/+Bbf2i7ThXRaD+VjN8jSSKERu1gL00x6E39W fwu+jPMSe0OfFiU8mJUgBc+w0NA1Gb5Ihyfda0hi97JdlxwSZF6fPd4bk2MnGLeDPxeh KrTRiRGYJ9r7HyfmXUCFHwzg+pQJS28RpB8hxpjvKCdVj/5j3BrQ5OkwVjqYAd+9olzv HCmg== X-Gm-Message-State: AOAM531AFck1wl62crUtg58sgRtxdz68r+hOm9TBChcKKlNNAQUC3e+m LHBwftZGE+6xxv1dpUPPCe6DZYmWzyzUyA== X-Received: by 2002:a37:8a04:: with SMTP id m4mr24929995qkd.78.1613577619806; Wed, 17 Feb 2021 08:00:19 -0800 (PST) Received: from localhost (70.44.39.90.res-cmts.bus.ptd.net. [70.44.39.90]) by smtp.gmail.com with ESMTPSA id 16sm1393855qtz.17.2021.02.17.08.00.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Feb 2021 08:00:19 -0800 (PST) Date: Wed, 17 Feb 2021 11:00:18 -0500 From: Johannes Weiner To: Petr Mladek Cc: Chris Down , linux-kernel@vger.kernel.org, Sergey Senozhatsky , John Ogness , Andrew Morton , Steven Rostedt , Greg Kroah-Hartman , Kees Cook , kernel-team@fb.com Subject: Re: code style: Re: [PATCH v4] printk: Userspace format enumeration support Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 17, 2021 at 04:45:51PM +0100, Petr Mladek wrote: > On Tue 2021-02-16 21:05:48, Chris Down wrote: > > Johannes Weiner writes: > > > On Tue, Feb 16, 2021 at 05:27:08PM +0000, Chris Down wrote: > > > > Petr Mladek writes: > > > > > I wonder if we could find a better name for the configure switch. > > > > > I have troubles to imagine what printk enumeration might mean. > > > > > Well, it might be because I am not a native speaker. > > > > > > > > > > Anyway, the word "enumeration" is used only in the configure option. > > > > > Everything else is "printk_fmt" > > > > > > > > > > What about DEBUG_PRINTK_FORMATS? > > > > > > > > Hmm, I don't like DEBUG_PRINTK_FMTS because it's not about debugging, it's > > > > about enumeration, I guess :-) > > > > > > > > The name should reflect that this catalogues the available printks in the > > > > kernel -- "debugging" seems to imply something different. > > > > > > > > I'm ok with a different name like "printk catalogue" or something like that > > > > if you prefer. Personally I think "printk enumeration" is fairly clear -- > > > > it's about enumerating the available printks -- but anything that captures > > > > that spirit is fine. > > > > > > How about config PRINTK_INDEX? > > > > Ah yes, I also like that. PRINTK_INDEX is fine from my perspective and is > > more straightforward than "enumeration", thanks. > > It is better than enumeration. But there is still the same > problem. The word "index" is used neither in the code > nor in the debugfs interface. It is like enabling cars and > seeing apples. I assumed code and interface would then also be changed to printk_index, struct printk_index_section, pi_foo, ...