Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753049AbcKOQmo (ORCPT ); Tue, 15 Nov 2016 11:42:44 -0500 Received: from mail-yw0-f195.google.com ([209.85.161.195]:34592 "EHLO mail-yw0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751496AbcKOQml (ORCPT ); Tue, 15 Nov 2016 11:42:41 -0500 MIME-Version: 1.0 In-Reply-To: <20161115083736.GA15734@gmail.com> References: <20161114173946.501528675@infradead.org> <20161114174446.486581399@infradead.org> <20161114181655.GA21516@infradead.org> <20161115072855.GB28248@kroah.com> <20161115083736.GA15734@gmail.com> From: Linus Torvalds Date: Tue, 15 Nov 2016 08:42:39 -0800 X-Google-Sender-Auth: BYyDMYYWtENCpp2TBj0MRRMwbwo Message-ID: Subject: Re: [PATCH] printk, locking/atomics, kref: Introduce new %pAr and %pAk format string options for atomic_t and 'struct kref' To: Ingo Molnar Cc: Greg KH , Christoph Hellwig , Peter Zijlstra , Kees Cook , Will Deacon , elena.reshetova@intel.com, Arnd Bergmann , Thomas Gleixner , Peter Anvin , dave@progbits.org, Linux Kernel Mailing List Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 613 Lines: 17 On Tue, Nov 15, 2016 at 12:37 AM, Ingo Molnar wrote: > +atomic variables such atomic_t or struct kref: > + > + %pAr atomic_t count > + %pAk struct kref count Not a huge fan. That "r" makes sense to you ("raw" atomic), but it makes no sense to a user. An atomic isn't "raw" to anybody else. It's just an atomic. Also, we have 'atomic64_t", which this doesn't cover at all. I'd suggest just %pA, %pA64, %pAkref or something. Which leaves us the choice to add more atomic versions later without having to make up random one-letter things that make no sense. Linus