From patchwork Sat Dec 1 18:16:20 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 10707757 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 07BA613AD for ; Sat, 1 Dec 2018 18:16:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E2D792BF42 for ; Sat, 1 Dec 2018 18:16:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D1A802CB91; Sat, 1 Dec 2018 18:16:33 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 82B402BF42 for ; Sat, 1 Dec 2018 18:16:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725732AbeLBF3h (ORCPT ); Sun, 2 Dec 2018 00:29:37 -0500 Received: from mail-pf1-f195.google.com ([209.85.210.195]:40151 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725726AbeLBF3h (ORCPT ); Sun, 2 Dec 2018 00:29:37 -0500 Received: by mail-pf1-f195.google.com with SMTP id i12so4372130pfo.7 for ; Sat, 01 Dec 2018 10:16:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Uv4ynGws8NlsVVFe+PaKZzQkwudBNYnPCID2Ig21U6I=; b=JNBPwJFIXY4HIBkvur7vYI0aQQ6/yjzxytZpZsoJc1PfwK2beH2HyoDLpyXnFc4FiE fng3KpyHHkQ2jBtB3eosAShBVifAqVN3LoR7epU4wUXcm2y+9xYvzKBZzRYOc7KRos6w G0yisv6oSihawXnRXQrXdTBjI5VrSnsBL6SJ74kSNN1KKy4p6YQjV58I0+cGtBUswAnl nA0gML5LRa4+/1KcXKlLkDMo6tgqrb9A5LUjugUaszyP+kPpNTWenyTehz4yUT0zYhky bkH2vcKOXES6WrmFhro8B62osvPlOSCe2mm6MhRFQsHO6wx4zC95Nk8mSZttH64e2fE3 C/wQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Uv4ynGws8NlsVVFe+PaKZzQkwudBNYnPCID2Ig21U6I=; b=E1Zdc5t+Ca6hSPe+yH6N7B/OgwwemBXYCqljnrSd2lLuRe6DCs+m5LpXrEbs4YFyv9 ZwZi4HHidD+fCNQEHFNRLTsq4Rv/VYhRhVj5xj+QuYU6CVfaPPS6fhfWiuImeYLElmoq mwalJs1uQeBoIBGCPSXfnaJd8gs0LLO+x345l7l9TXy/Hasty/Ciu7LB3H/qDLXJAhM+ bJWxCcSPx3yWQmzm3dcHAIbFiAIm1BpXyYbCTHcl3TMzHcxD2dLbK9NPFo22+v3yREnC UD8J7BgqU0BJZYqSJzcHL/0ii42T/7dNGxf1IE3CZYRmbeBxKbCO9x0e1xiJueyhTaUk Ps5Q== X-Gm-Message-State: AA+aEWaqqABBXC3kHdtSwagz/TYT6Z/qLPrm3JQHZs8/As2P4RZGaA4r t4RkG+RHFvk1ywH9z47HT8d2GU4Wdk4= X-Google-Smtp-Source: AFSGD/XnQZM1HTJl8J5KHcTszPAebrMAOaVnV4AeeYxvYqqObVbBU6IyemrmQux2pGc+fIGVu4qvaA== X-Received: by 2002:a63:dc54:: with SMTP id f20mr8597957pgj.410.1543688191075; Sat, 01 Dec 2018 10:16:31 -0800 (PST) Received: from localhost.localdomain ([2601:646:877f:9499::26ab]) by smtp.gmail.com with ESMTPSA id s190sm11570042pfb.103.2018.12.01.10.16.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 01 Dec 2018 10:16:30 -0800 (PST) From: Khem Raj To: linux-nfs@vger.kernel.org Cc: Khem Raj Subject: [PATCH] cacheio: use intmax_t for formatted IO Date: Sat, 1 Dec 2018 10:16:20 -0800 Message-Id: <20181201181621.7268-1-raj.khem@gmail.com> X-Mailer: git-send-email 2.19.2 MIME-Version: 1.0 Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP time_t is not same size on x32 ABI (ILP32) Signed-off-by: Khem Raj --- support/nfs/cacheio.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/support/nfs/cacheio.c b/support/nfs/cacheio.c index 9dc4cf1..2086a95 100644 --- a/support/nfs/cacheio.c +++ b/support/nfs/cacheio.c @@ -17,6 +17,7 @@ #include #include +#include #include #include #include @@ -234,7 +235,7 @@ cache_flush(int force) stb.st_mtime > now) stb.st_mtime = time(0); - sprintf(stime, "%ld\n", stb.st_mtime); + sprintf(stime, "%jd\n", (intmax_t)stb.st_mtime); for (c=0; cachelist[c]; c++) { int fd; sprintf(path, "/proc/net/rpc/%s/flush", cachelist[c]);