From nobody Fri Nov 29 18:46:26 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1630141676; cv=none; d=zohomail.com; s=zohoarc; b=UyVoOxH3jgVYfWduX4/gLZsv79WCHoXB0icaTDLL5TkEXilQU7h+0ZuxP0n89V1TeN908ZbGGu7ILEUyOA3M6IyWBPkplNy0QohfXNOFWx53K9QoDiJvxydAR70ZHEG+2KZIXZxtSHffzLWbie6zwKwZShlcltWQguwZGlRkF80= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1630141676; h=Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=/sH/jrHuo71/+6NebGzrhW9dd80+cJ2aN1P8SqmFG4Y=; b=njrz4X6okyvYw4aW2sZdC2xh0Ls+Lyu3Sqz31mo3loI/1/9/c2uDgoLQ4B9pTZA83lD/ep/KZSs13drZmS/9q2ulqMK+xgwb0QLRdscaoj7U+a+/XmznIomFDpnfuNqD+hOWIe3CXLEp1cAhzLplgEWyhYs7C89i5cAGKUueW24= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1630141676802548.3297106903804; Sat, 28 Aug 2021 02:07:56 -0700 (PDT) Received: from list by lists.xenproject.org with outflank-mailman.174229.317839 (Exim 4.92) (envelope-from ) id 1mJuJA-0001xo-1q; Sat, 28 Aug 2021 09:07:24 +0000 Received: by outflank-mailman (output) from mailman id 174229.317839; Sat, 28 Aug 2021 09:07:24 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1mJuJ9-0001xh-UV; Sat, 28 Aug 2021 09:07:23 +0000 Received: by outflank-mailman (input) for mailman id 174229; Sat, 28 Aug 2021 09:07:22 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1mJuJ8-0001xb-A1 for xen-devel@lists.xenproject.org; Sat, 28 Aug 2021 09:07:22 +0000 Received: from mail-wr1-x432.google.com (unknown [2a00:1450:4864:20::432]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id 5220c1e1-a641-4f73-b03b-cae2ba0f0b68; Sat, 28 Aug 2021 09:07:21 +0000 (UTC) Received: by mail-wr1-x432.google.com with SMTP id h13so14174708wrp.1 for ; Sat, 28 Aug 2021 02:07:21 -0700 (PDT) Received: from kali.home (lfbn-ren-1-417-221.w2-10.abo.wanadoo.fr. [2.10.242.221]) by smtp.gmail.com with ESMTPSA id d24sm7423190wmb.35.2021.08.28.02.07.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 28 Aug 2021 02:07:19 -0700 (PDT) X-Outflank-Mailman: Message body and most headers restored to incoming version X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: 5220c1e1-a641-4f73-b03b-cae2ba0f0b68 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=/sH/jrHuo71/+6NebGzrhW9dd80+cJ2aN1P8SqmFG4Y=; b=QyVf/mUUeIEJ61MJnbAU22hmTgN6Vmff9CkaV8FroxULw7Xg1qVvifzVMdxqvZ4EB7 pguRnl+SfSHkCXij4spgHC2PU6+xsYyQEjYtSV134QtcG2G8ehhw4AkxC/FVybP0yoik pwiC9nFmOh/1Y3mcYEZByMHYaNrUdGBa14SQZxMBXz1vBhcwiNMCs+luPwJz3Hgp3Ws8 57iVca9hGrAjhEnDBez3pD1tXD+eh3A1V5ZTs2FXbI1G/wPGDr3knSFCwZUBLxSAyhrm cBb3aktSERl5ondLjepVlJe6WDd8R3IsVO0AlybN1IwOO4OHyuEdg4eY06SUwamv7kEw OXxQ== 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=/sH/jrHuo71/+6NebGzrhW9dd80+cJ2aN1P8SqmFG4Y=; b=J9NDX8XE+oy26rKFueDg/mwT7svrgOXre20I7O4fiDbW7uhtO0QJ7ZIQmyB9HFto/4 xzxt0eb4owa3J8x0NDH/QjutVjVB1s9Lh7f9JxaC3VLpK6aI2Zwty7YPsMOXGR6Ph/l7 fSL/Kn53p4cDKR0Hb59B6eiLXMkC+a1CJdDpp5YGFUri3brOc/c7L/ZxQl2imfjyC8vA zZ94CaGaNHf0vQSQcB/ZqWkpePVllOZMAV9FRSpve3ddTdUMpuDTQ5MB1FLc0UT/Vtta TDx85fPs/bD8aSj84HBwiy1DPtha9X4+ddhU2y7EjfJXqQ0pgpdzRRXluR1aeJjJTE0k M4Ug== X-Gm-Message-State: AOAM532lINJMq/+YwcqIug4FXE6DX7BiA496jZNUrBp9VKPUpJPQb9AO Wd4l5YVL4YDajQrStltHDRGwHvf9opH6zw== X-Google-Smtp-Source: ABdhPJw0bk3v8/0UNwFLiqjovSZMtun130MfJKTZnZrm5RUPPYaJiX3gpJ7z/ulq+jvnTM200Vo+3w== X-Received: by 2002:a5d:4acc:: with SMTP id y12mr14745119wrs.278.1630141640131; Sat, 28 Aug 2021 02:07:20 -0700 (PDT) From: Fabrice Fontaine To: xen-devel@lists.xenproject.org Cc: Fabrice Fontaine , Ian Jackson , Wei Liu , Anthony PERARD , Juergen Gross Subject: [PATCH] libs/light: fix tv_sec fprintf format Date: Sat, 28 Aug 2021 11:07:09 +0200 Message-Id: <20210828090709.738512-1-fontaine.fabrice@gmail.com> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @gmail.com) X-ZM-MESSAGEID: 1630141679150100001 Content-Type: text/plain; charset="utf-8" Don't assume tv_sec is a unsigned long, it is 64 bits on NetBSD 32 bits. Use %jd and cast to (intmax_t) instead Signed-off-by: Fabrice Fontaine Reviewed-by: Ian Jackson --- tools/libs/light/libxl_domain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/libs/light/libxl_domain.c b/tools/libs/light/libxl_domai= n.c index c00c36c928..51a6127552 100644 --- a/tools/libs/light/libxl_domain.c +++ b/tools/libs/light/libxl_domain.c @@ -1444,7 +1444,7 @@ static int libxl__mark_domid_recent(libxl__gc *gc, ui= nt32_t domid) } } =20 - r =3D fprintf(nf, "%lu %u\n", ctxt.ts.tv_sec, domid); + r =3D fprintf(nf, "%jd %u\n", (intmax_t)ctxt.ts.tv_sec, domid); if (r < 0) { LOGED(ERROR, domid, "failed to write to '%s'", new); goto out; --=20 2.32.0