From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752892AbdC0Pf3 (ORCPT ); Mon, 27 Mar 2017 11:35:29 -0400 Received: from mail-ot0-f195.google.com ([74.125.82.195]:35897 "EHLO mail-ot0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751385AbdC0PfT (ORCPT ); Mon, 27 Mar 2017 11:35:19 -0400 MIME-Version: 1.0 In-Reply-To: <20170327113028.7f74c9b8@gandalf.local.home> References: <6559f36c6c6cdc2552b0bccf31de967367aa790d.1489672478.git.jpoimboe@redhat.com> <20170324181254.gouyrbmppukrrbb6@treble> <20170324144114.16a37d47@gandalf.local.home> <5766300.HtmE7iLEgV@aspire.rjw.lan> <20170327140843.fx5y32rnc3mqiyke@treble> <20170327113028.7f74c9b8@gandalf.local.home> From: Arnd Bergmann Date: Mon, 27 Mar 2017 17:35:13 +0200 X-Google-Sender-Auth: p-LAyTHSGadociTiLrNnJkTjDhM Message-ID: Subject: Re: [PATCH] trace: Make trace_hwlat timestamp y2038 safe To: Steven Rostedt Cc: Paul Menzel , Len Brown , ACPI Devel Maling List , Linux Kernel Mailing List , "the arch/x86 maintainers" , Borislav Petkov , "Rafael J. Wysocki" Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 27, 2017 at 5:30 PM, Steven Rostedt wrote: > On Mon, 27 Mar 2017 16:53:09 +0200 >> We could probably introduce a %pts format string for timespec64 >> and have that pretty-printed. > > Hmm, probably don't want a %p as that suggests its a pointer, which it > should not be. Unless we pass in the address of the number. The special format strings that the kernel defines all start with %p and require passing by reference so we don't get a warning from gcc. We can't just make up new format strings otherwise, but we can create new meaning for special pointers as we do for struct resource and others. Arnd