Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759282AbcCVLvf (ORCPT ); Tue, 22 Mar 2016 07:51:35 -0400 Received: from mout.kundenserver.de ([212.227.126.133]:56220 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756635AbcCVLv1 (ORCPT ); Tue, 22 Mar 2016 07:51:27 -0400 From: Arnd Bergmann To: y2038@lists.linaro.org Cc: Tina Ruchandani , Kalle Valo , netdev@vger.kernel.org, linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [Y2038] [PATCH] prism54: isl_38xx: Replace 'struct timeval' Date: Tue, 22 Mar 2016 12:51:11 +0100 Message-ID: <4052607.z5Cu6oJFz8@wuerfel> User-Agent: KMail/4.11.5 (Linux/3.16.0-10-generic; KDE/4.11.5; x86_64; ; ) In-Reply-To: <20160322095522.GA35392@localhost> References: <20160322095522.GA35392@localhost> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Provags-ID: V03:K0:NrcYeWvdohoQiinYaWQDORsC7SVzIauTZMuLgU7KZG0yKjUUOtc BkTWeszJT7ekCQwDcv31EzC+/0vJLO+34fgUxnIAm6kOL2fFpW3LlnKJIrLoD35e5Od8ohq 5dJUE94kM/wWKLVndjSHKxWFzcd5bIRw4lA39/a9qACgb78kQJ1Bq+PtPgQw5ZToa9bZtyY 27mPUeKNZqwVhgHrdMnXw== X-UI-Out-Filterresults: notjunk:1;V01:K0:lGtclWRW6rw=:Oab0Nm3hwMEGNH7ncrgNIf K5xS90A4pMqowtq7NPSacYwLgTNAZrnP102d5mU35J9ZjJatc+bnsnqqyEV7Dh9hOBaEcdBDw +ymYz7tsYZwLZFw9XFDGD43MB2e22ObIUpU01mJ2IEHEM5SQwwGtV0N8grmecSwiYmLjMKFf8 Wj/wAFIoTUTk/Ofj4XapPDTDzk1o4Qc7Q1HBDremuOleiMClEgwv1c2l/VeQMG14jeymOf1H0 5yDNhheXeM1Sb5Bn+2UP1xIBtz/aFC+ivtZhKcIvg2j8/VkMCIbRGM4IBLqnHEXyrTap0QOmr SsUUcuVo1Irkg2ITIbB3lSfoydc4ckaEQvBiO1MTfbcP5uJQMcfw1NZeun5TgHNhEhuKmkDd6 Sym0mPlFYZwV00SssnnoR0bfhuJAO92PJEXS04oCX5kKD5WBuTAbCuZa4A+WKoT5Od6ZhgLLR RM32quuhbGnVS7AiOByGortn28GuPphWmnboW1PvMCGnlMserby14XbPIAvEUfsg0B5p98bUt M7Sr0oynC/KPRGZ4GN/35KBHsfO/nWZeGN9v/GrbCRuGPaDHzK4gDiQacTHp+nWwJ8TIgda8w WCVFDGVe8gVy4isOLwa+1S5VLBEt5HwSrafrh+n+ZYenRIHhaqThfFRo7TPh8pQBzZ7vgpRXA H+Okgx2/3BnfeAc0B7tjBw+2pSxnpPyqqpH/Zd18EDarA9yrpgqhzfj2Vleed6JrzI4UL3/gx a0nTed+38FhyldLd Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 685 Lines: 16 On Tuesday 22 March 2016 02:55:22 Tina Ruchandani wrote: > Truly fixing this would > require changing the debug print to print more than 8 digits and using > a different specifier from %li. Why not just change it to %lli, and a cast to s64? I don't think the format string or the number of digits is important here because it's just debug output that is normally disabled. I also see an existing bug in the format string: "%08li.%08li" means we end up printing a six digit microsecond value with two leading zeros, which is rather confusing. I think using "%lld.%06ld" would be best here, or possibly "%lld.%09ld" to print the whole nanoseconds so we can skip the division. Arnd