From patchwork Tue Jun 19 15:43:15 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 139152 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp5365061lji; Tue, 19 Jun 2018 08:44:43 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJkNtV2SPN5A0fAbuFnzLaDCCDvBD6Fr530e+x3JV43hLSDkY0GJ/PEgBNjKzizXW/Itm5O X-Received: by 2002:a65:61c7:: with SMTP id j7-v6mr15756799pgv.358.1529423083381; Tue, 19 Jun 2018 08:44:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529423083; cv=none; d=google.com; s=arc-20160816; b=B/Llf/wcAPJLUZDd4JvBifQnyNlp0lh4kpDqWTdEZY6tB1DlTud6mmXmapJ5UR+SE0 n5xM/a/F9sct0NfWmMuvNPSC84igl6nRMnf441uNJiDMHIGBxML7EzZt3gRtnqXEKdQA taQ1Dz7Fxf0j55zhx1O5Iqs8hcjtt4jRpHoJkp8QABED5NQn3wYzFWVfuzJVz1F9kVWA AXgCbMRud/+Yt1tJ5h0PpjktzKWAEjzVPQiuBD/kmW91DoJQygTHZ/Zx6uIvzxhfzs4M XJh0AraHjzfaY1vLJzlV4/jGtcCKUN2ZLsNaCUhNbd3Ssy8SLOea8hwjjKEjegf+tbo1 baVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=2dlm9KFxfsPD5AJUfE5unjxiRMLRUOKbCcApln+xaK8=; b=owbNf4DwkodkDW5xqgoA+xcvlg2ELAgYZeCzzHxBO2rMttj0oRRoHHsk/3tjeY9Rg9 tF4mgTpKtRwrjgA22Iz02W7aqW1xkmgyx41trHoKFskEiGdkaQR2rJyQ2hw4+b8QB92v KG8oIcXKsPBC0jQb+15sKmw+f0ASEKavRFroKU9XrPBQNydooi+4dAwGigEvAQloR4Ci /0T7kWp1PTDhBS0ZHWRCl3JgjiFr219hb4JBJfwo732a11RETHr2LzsPD5N/t7wOx1Vr dUb+CX3AvBm080IPvlZSNxa+fwQOl95UWokPK89VEvgIYZMQzM+GzEUKtB2g37VkvEUt 8huQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n20-v6si2087plp.298.2018.06.19.08.44.43; Tue, 19 Jun 2018 08:44:43 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S966784AbeFSPok (ORCPT + 30 others); Tue, 19 Jun 2018 11:44:40 -0400 Received: from mout.kundenserver.de ([212.227.126.134]:35599 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964999AbeFSPoi (ORCPT ); Tue, 19 Jun 2018 11:44:38 -0400 Received: from wuerfel.lan ([95.208.111.237]) by mrelayeu.kundenserver.de (mreue006 [212.227.15.129]) with ESMTPA (Nemesis) id 0LfcCc-1fya533Zww-00pMdY; Tue, 19 Jun 2018 17:44:36 +0200 From: Arnd Bergmann To: Al Viro , Andrew Morton Cc: y2038@lists.linaro.org, Jan Kara , Arnd Bergmann , reiserfs-devel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/3] reiserfs: use 64-bit values in print_time Date: Tue, 19 Jun 2018 17:43:15 +0200 Message-Id: <20180619154343.3640484-3-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 In-Reply-To: <20180619154343.3640484-1-arnd@arndb.de> References: <20180619154343.3640484-1-arnd@arndb.de> X-Provags-ID: V03:K1:52k9zeNWrwsdYEhT04fve0Mkyatoe2paE7NXA9DXR/xTGb+bCSi 74f2ak6fl7sNyt2UYeSlbTtWDhq6IdxOunhsbQ7PUPkTaO4A8qIetj8W9Qq1C/t5v+1A9mW wfaQfH3RVZRLveDO/7B6E8HI16NPKh/tr35uw35pgomT19FancGashdlC7ljOvdeakojhsH 0ia9Ou6Sf1xJyMs2OyPTQ== X-UI-Out-Filterresults: notjunk:1; V01:K0:Aacv8960YZY=:GvqKP78lPufsLVgzPi1PEt p35ys5uba0cpcKTZ6Lq/kgtpNrCWAJzxsalEbAF7b91ZklbOjaLnCz6kODU8/5f8tKoiiRINj sI82PNwsA65oBgBqrC5P2gfZslC1h/ZOBAhuqSa9jn95PhZq+fwqHfX0Kpn+48CHLbzaeE4u1 CBFj2/pdJfyqfAi3R/5pMRjs8aeaCxvhMSg1n31tk0hLV8yP3OSrHvX79QqLmsM83D2hgfNq+ Hg2T6uY8bmE3LgTLwNWcaIk2E+qwmHrDqlWGDbchSwOh14JxbODUUbG5FRYrmd9LvscIRdWfX T0+BvrcdC4sy1Kh3GQ3vZd92AOtraO5toYk63VGdUih9leeFSBMKRwOhH3wmGK4AfucTKfJ/m K7I1TsB2dLSJYqV4fTL+FEmPjoomKcEqDa73A79do82EJPmS4uQMp4QHj01OBQUGQxFEXC+Kg iPXYVsEJ2Bm1SkgFgcMBverftGIr3jR7aRB1vMhib0o/+CGpjGCSdCY4AU/av+hPUBfe6iPbx Niew5gZEyCt9Ldo5uzfwyrm3Jpv8p9m/oKPO2N7ajDysU27opmr2ygmSJWd6Dh1L/7WP+yS8i wUfe1Qb4Y0ZsNIZdUwT7I4UVZ7j+S4Ywa3RW1Cs/lYXAZBOmNnzZNmQtFfFeewIqAWi2FOGcL plbKs5Qh2TgGjzTF0MryIF2hrQ5ObJY52p1TbXFD0SZj3GTJ0vHcfVYXWYaG7ct5g4NA= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Inode timestamps are now 64-bit wide even on 32-bit machines, and reiserfs interprets the 32-bit on-disk timestamps as unsigned when returning them to user space with statx(), so for consistency we should print them the same way in the emergency console logs. Signed-off-by: Arnd Bergmann --- fs/reiserfs/item_ops.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.9.0 diff --git a/fs/reiserfs/item_ops.c b/fs/reiserfs/item_ops.c index e3c558d1b78c..d0ab3a763962 100644 --- a/fs/reiserfs/item_ops.c +++ b/fs/reiserfs/item_ops.c @@ -33,11 +33,11 @@ static int sd_is_left_mergeable(struct reiserfs_key *key, unsigned long bsize) return 0; } -static char *print_time(time_t t) +static char *print_time(time64_t t) { static char timebuf[256]; - sprintf(timebuf, "%ld", t); + sprintf(timebuf, "%lld", t); return timebuf; }