Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp5999347pxb; Tue, 16 Feb 2021 13:08:36 -0800 (PST) X-Google-Smtp-Source: ABdhPJydVLdNVecBSD/gs80AUq5g7MFq6h4Yz74dGb8xogNk6yZGoVAV6JIqXSTXWfVW5fZ25cI4 X-Received: by 2002:a17:907:da9:: with SMTP id go41mr22614570ejc.326.1613509716577; Tue, 16 Feb 2021 13:08:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613509716; cv=none; d=google.com; s=arc-20160816; b=pkCDVUuiiTMhxx6xvSQHtGE19WA6Jv+jhUoOPkzj6Xdvf4GjI+E+FMEaeH1hk4dVEI P6J/FTAvvICgBZ+Bq7K801i4WN9nnybBLJhzwk1Hky1RoW7S0toZXpZjNgsubEeIlHDW 4zXDXPY9VpCVyUWRaLPG5WwCJLCMVy0n/OgHVuRN5HynmHXx7kHO4z8T8BZ/kjM+CxIX I7CSTue0am3A+nM7FV0rq9qxIr/1civNkZol2IKNtcGDyZd+MIzW/a5lZzDNcot+s5LT 4zY2tjVNjh3wH263WYXX9y6d6GpHBpYH7Fkb3QjftLn6KPKrFFv0V/bHWzHoN6j658Zz dyiA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=L1rdvx4z/ptc857CA7B6CcX99owPuUmGCU5Rbtb5uRg=; b=1K5BlzmNgnkdwRmHMAMqsFcPyDCUbRdPZj9Cg60oxq0YXAbIjzjWToX9gOEeIrhvrT 6S4R4ceF0GEShkXsi1QnJxEGeA20qu/S1bav6/72pN08SCzutmRP4TyD43iJBa/QOtqK 6bwrNEbYfT49M3ggzLh5H3cchso1qF/OLYkpF9+q3AWaiifIc0JakfREBVv/3+BCuvCE hzLJd6PJh568E9OwOSR3SvzFpPi5Ovys80hdBU2mDagNiiW8biNvMKAFbSXh1zcCjxK/ Etl5jLJRRgC3LAn4ucrUH9+tPF/PyTqQWQYSIdAKFTCMbMbWxm/ZwreGqmjWeczDq4vV QgSQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chrisdown.name header.s=google header.b=YMISgFee; 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=pass (p=NONE sp=NONE dis=NONE) header.from=chrisdown.name Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x19si15487001edd.134.2021.02.16.13.08.11; Tue, 16 Feb 2021 13:08:36 -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=@chrisdown.name header.s=google header.b=YMISgFee; 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=pass (p=NONE sp=NONE dis=NONE) header.from=chrisdown.name Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229946AbhBPVGd (ORCPT + 99 others); Tue, 16 Feb 2021 16:06:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52050 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229544AbhBPVGb (ORCPT ); Tue, 16 Feb 2021 16:06:31 -0500 Received: from mail-wm1-x32f.google.com (mail-wm1-x32f.google.com [IPv6:2a00:1450:4864:20::32f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BC03EC061574 for ; Tue, 16 Feb 2021 13:05:50 -0800 (PST) Received: by mail-wm1-x32f.google.com with SMTP id n10so81410wmq.0 for ; Tue, 16 Feb 2021 13:05:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chrisdown.name; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=L1rdvx4z/ptc857CA7B6CcX99owPuUmGCU5Rbtb5uRg=; b=YMISgFeeOPogp5tH31t12LjNe3UKrfX8vSz0z5kbcX+ojZIapz5R/kFT3/1bxrPi0k ze4T88SeYljzNOG73vHYDV8raHaXXVdTJZjwi+l6SkTys52tJ2X3zLsf0khP0SSq6wDo rpwvzYdRKlR01NRPvURQiljWJ29o6MWdKithc= 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:user-agent; bh=L1rdvx4z/ptc857CA7B6CcX99owPuUmGCU5Rbtb5uRg=; b=RejL7KEqkf0zFIY2moYh528xCRuthskNFJ/VqRfwpHFaC51EQvkTkLXcLYErnPsBA5 v7G/mP1cRAYJmGUhzVAdaFXsNUcs/ef4aLmhDam8RmemdOrELyvjhsVUBQjnfIv1ZQ1T zqf+RAF8ZUBVGmICaQyvb9HKRdDhiYvraolS0HdUj1hSe+r3/FPSfQTFObMg2jyOaY4k laxqlkU3U3zeDV0kYEG3Be5x9IihHUjUnC001R9x95L/Xq3fPglFyLgYqFdpHtiK+Rl6 sFFaTOMZTVSzyu231TNOY/n5aqTvRiFZlYd3agIRrGNK9dmHIVNrKgfwm35DVhD5fScU 3JDg== X-Gm-Message-State: AOAM532FGakUuosRETplosX/Cb3w1H2znrTMzGckVNlUPDzuCq29dkZA ZdU7db/C4hy8cbitH4dBaVWEbg== X-Received: by 2002:a1c:e446:: with SMTP id b67mr193910wmh.65.1613509549346; Tue, 16 Feb 2021 13:05:49 -0800 (PST) Received: from localhost ([2620:10d:c093:400::4:76fd]) by smtp.gmail.com with ESMTPSA id z5sm18945wrn.8.2021.02.16.13.05.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Feb 2021 13:05:49 -0800 (PST) Date: Tue, 16 Feb 2021 21:05:48 +0000 From: Chris Down To: Johannes Weiner Cc: Petr Mladek , 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; format=flowed Content-Disposition: inline In-Reply-To: User-Agent: Mutt/2.0.5 (da5e3282) (2021-01-21) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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.