From nobody Mon Sep 27 06:05:46 2021 X-Original-To: freebsd-arm@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id CC66917E2C81 for ; Mon, 27 Sep 2021 06:06:01 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic315-8.consmr.mail.gq1.yahoo.com (sonic315-8.consmr.mail.gq1.yahoo.com [98.137.65.32]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4HHsZd370Bz4RPj for ; Mon, 27 Sep 2021 06:06:01 +0000 (UTC) (envelope-from marklmi@yahoo.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1632722754; bh=sR1OHu7Ybi6xz8qSAv0qJOMPDma3lwPiazG3/R5R+HE=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From:Subject:Reply-To; b=dDyjOWgzq3+TuRcfuHJWCWnHEVJ3IUuXMx5tJ8XSySzWUi91CIDvd8BzrfBLCMPcQZaCvkBmqOTzM7YF1OzZ3lOXQYiYFd7/66+u+bWTGJZ+UtcizwT22N7+j2b2OvVZwujF88/qz2Mv89P2RnVSVTasDPFppHUPsVkstTNbMLEVyvtFxFtU+IjdHF07A0KGeMAd9rT0mwj2E5TVn3knXQTjbggsnfSx/OPAoaIgU0kesHQR1N6rygkPAmOogHr+MRFh+t4TQe3ys/wy3Nb5rbLzVsCU/Z36UKwBza98Nq+PPCiNPVzt9UgvjiBG3oKefTFJLdDVvD68VfoCRND5Wg== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1632722754; bh=8w1Jh5bGTbxKKW4EpOSux+T+xta6ULDiwPmnU65WcT7=; h=X-Sonic-MF:Subject:From:Date:To:From:Subject; b=PUUfyXxr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.8ZHFpxDB.MRQXNlrx_.g5SVPGzo6kPI2kJSiqjikDzNSsT9uAlwvZAXXWDcpsZ2gRQnP 6bmaTgtBgxOCaAymPuW.xWM7Yet0m95C58cv3MSTBlpmXgkAo9KvTBUTd0LR7mT1ZtrQVTKe.9cR raPUI0KxqeO7gaB1d90SV9Op3rH0hGWq6W6DKdQS6m3Njg6WRICPgLsHnxpDvZ47Q2dqn1F83Ntb JPQjEj6yi1wXGQ2upLKdbzJkh_iEvTzVu9yclCXrHupBRf0IPajwZWgiM4lLFPwPqePPbrXx78wt v1DbCqm7KnMSZDSo3kwr.AckiHXWMa_IcCJPpBNHLf6t5kHzsXF73W_iiEQcOQeIzWJv8VpWBbWh b6xQHMN_a7wQds2qI3CONcTGT2ZPw.LtwCcXc71SEBcQ8279s6KbDr3ZRPWlwcCFZvc0GLO031Jx Hgz203SsfoiUwTiGezAD_jKrzcntARRW36pH43ynqvvF9ePCcffLUBcnDXiqcb5zGUXIsZoHeiyU v_81nuYUkB_1OG9sTejtnd8fs X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic315.consmr.mail.gq1.yahoo.com with HTTP; Mon, 27 Sep 2021 06:05:54 +0000 Received: by kubenode586.mail-prod1.omega.bf1.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 2b4e69c12d193289e757e74478fe0d69; Mon, 27 Sep 2021 06:05:49 +0000 (UTC) Content-Type: text/plain; charset=us-ascii List-Id: Porting FreeBSD to ARM processors List-Archive: https://lists.freebsd.org/archives/freebsd-arm List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arm@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.13\)) Subject: Re: I get odd time reports from poudriere on armv7 system, under a (non-debug) main [so: 14] FreeBSD. In-Reply-To: Date: Sun, 26 Sep 2021 23:05:46 -0700 Cc: freebsd-ports@freebsd.org, freebsd-current , Free BSD Content-Transfer-Encoding: quoted-printable Message-Id: <0FE65CAD-EDFF-4CE8-8750-BD4F6971CAA0@yahoo.com> References: <187B69AF-9465-41DE-BFD0-A4AA0F7F9068@yahoo.com> To: Ian Lepore , Bryan Drewery X-Mailer: Apple Mail (2.3654.120.0.1.13) X-Rspamd-Queue-Id: 4HHsZd370Bz4RPj X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] Reply-To: marklmi@yahoo.com From: Mark Millard via freebsd-ports X-Original-From: Mark Millard X-ThisMailContainsUnwantedMimeParts: N On 2021-Sep-26, at 10:02, Ian Lepore wrote: > On Sun, 2021-09-26 at 02:27 -0700, Mark Millard via freebsd-current > wrote: >> On 2021-Sep-25, at 23:25, Mark Millard wrote: >>=20 >>=20 >> [...] >> if (argc =3D=3D 3 && strcmp(argv[2], "-nsec") =3D=3D 0) >> printf("%ld.%ld\n", ts.tv_sec, ts.tv_nsec); >=20 > There are two problems with this, both the seconds and nanos are > printed incorrectly. The correct incantation would be >=20 > printf("%jd.%09ld\n", (intmax_t)ts.tv_sec, ts.tv_nsec); >=20 Thanks Ian for looking into more than I did last night. Based on the following (up to possible e-mail white space issues), poudriere-devel seems t be working for reporting times: # more /usr/ports/ports-mgmt/poudriere-devel/files/patch-clock=20 --- src/libexec/poudriere/clock/clock.c.orig 2021-09-26 = 22:24:54.735485000 -0700 +++ src/libexec/poudriere/clock/clock.c 2021-09-26 11:46:12.076362000 = -0700 @@ -24,6 +24,7 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ =20 +#include #include #include #include @@ -71,8 +72,8 @@ } else usage(); if (argc =3D=3D 3 && strcmp(argv[2], "-nsec") =3D=3D 0) - printf("%ld.%ld\n", ts.tv_sec, ts.tv_nsec); + printf("%jd.%09ld\n", (intmax_t)ts.tv_sec, ts.tv_nsec); else - printf("%ld\n", ts.tv_sec); + printf("%jd\n", (intmax_t)ts.tv_sec); return (EXIT_SUCCESS); } =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar)