Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1396476pxk; Thu, 10 Sep 2020 14:22:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy9n4IeZGADueaPLktiTM/vgy72ICUIygcrmu7kWQEAG3DKt94RGBgBwhD4fGAfuCldFqz6 X-Received: by 2002:a17:906:91d3:: with SMTP id b19mr11368660ejx.235.1599772919824; Thu, 10 Sep 2020 14:21:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599772919; cv=none; d=google.com; s=arc-20160816; b=foIrYps1e5kaoUiLh8k2DeBtsTl3+zIkXsxltaIMM1rf1qtaW7/ufG92qVHCajbykb OEcXczIujU8YqLeluKlDXRgQQUAQyYPHDmSVdNjS4GvC83VmzmF8RT253uqyTGRr6eZ+ 1quDZh5UCLmv2lNirKm89+qt5sCI+NsulILV9IUUCDuVy5Iy2cCsRCAS06H2SdznJi0Q PgoR4iAHVbD7fozye5EkxEE3VFNTy8HzkY4R331lnReYWoMcMAOrIvb6X1Iq9vX3juH1 HRxdMgnCg2H5FFlGZzREZf1xdf1tK9/qIB1/YRhgvm0BeMZ8Eq+ofsxxL2IkmISuZqfn +2eQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=2Zyy9i7u9pP0d3zFPaoDB6rzkQG+Aljjr+FC6Rnxpos=; b=WAnh6xaby2LEU74FcJrQcG2nom91yNFmfKqMTo9tcYvfu2eNXxFNADeSu/AyBBo0GC UIJP84fzbp4uSELPGAi0r5LK2kywsgQmyk8xtJA4I5dnTI5MLR1ZF9JhhZDTkzWniA0X Gm7iv1bz2j00lMo2H7TBVR6nBbKOXsFCxJkvbWz3kem/4aEqJtQmbM9gDSJfR40b0JPw +I8CfKikhgI90jijnaJsDGi1kLIPhbthfxdBRDR5WJ8DW0gLbIqk7iw4GUA5VksZ990s YwymgSUpPowlD+/w8KswZI5eII5XNQ38j4ochQXBmZgfJrZ5A43bS354bTYxDaNvx/gP Abxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="srLSW/vA"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v11si4513728edx.325.2020.09.10.14.21.36; Thu, 10 Sep 2020 14:21:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="srLSW/vA"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728093AbgIJVTt (ORCPT + 99 others); Thu, 10 Sep 2020 17:19:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34804 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725935AbgIJVOh (ORCPT ); Thu, 10 Sep 2020 17:14:37 -0400 Received: from mail-wm1-x344.google.com (mail-wm1-x344.google.com [IPv6:2a00:1450:4864:20::344]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C0844C061796; Thu, 10 Sep 2020 14:14:17 -0700 (PDT) Received: by mail-wm1-x344.google.com with SMTP id w2so1973520wmi.1; Thu, 10 Sep 2020 14:14:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=2Zyy9i7u9pP0d3zFPaoDB6rzkQG+Aljjr+FC6Rnxpos=; b=srLSW/vAvmZ2XkG0kA1bsK1bSBdtXA7MrhX9Ar1rjOk8AOEKKebi9a3GJ88hJLJlkg dir94kYAHvad6xVPnPRJeTUO9unFMbgJen2gBbg0GWJLqabiHPIzlTw3BLnA43oLiG+N hZFUUOSp9t4vuJHKOLnHIuEpj4k58pALNlVEOIbgg5Q5f+hJMj0zj1+PHwV/471vOYP7 K2s7cy7M1g4c7zzCKJXtkOHcd7KS9ZfXJZSFWqky5IdH+UEsryhMuy6L4J1ofTaK67f7 wo+I8wuDEB8XeOXc8HdY0AztI0njAVUjcQ9Lu6svuHFqM9XGkgWe4PeGRkGNXCZs8d7X rC8g== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=2Zyy9i7u9pP0d3zFPaoDB6rzkQG+Aljjr+FC6Rnxpos=; b=IDnne8TNaX0NM3t091eeAINJJqur5sX0JJt3gSdVemn39Lyw5AcFLbO345h9NljJEw NXisPMyrfiO0vnttsK/wllYweXBOBbXnHTbgPlixPZHu3Bz886p722op/ApZRHd0vb1U EdYHrmTqpngDnjAlm2LLaeaCh8hM93a5bHzaNeJfipLxKfl0abs9rqTtZQE92dpnw0pR tLFxxwihXSHhmb8eenSSuRbQiTAn3SLpLnmwaUp+G+wOzwEmLicjma9RvAsezkZ6fVeN T3wfiLLN1rJN/hJ5aj4Q//PornL1ajCPwcZU98hl54W4vQKv1lxVVxiCrNDqZ/E4Z2TJ mcBQ== X-Gm-Message-State: AOAM533Xm3LF2J+AVKgD5ztSlSlhKUrGwYwjRDg3orUTVtbX1ySjVQzS lBSQqGghrITf6VErP4ocZDn+QiLCQvTCSg== X-Received: by 2002:a1c:20d3:: with SMTP id g202mr1978379wmg.54.1599772456542; Thu, 10 Sep 2020 14:14:16 -0700 (PDT) Received: from localhost.localdomain ([170.253.60.68]) by smtp.googlemail.com with ESMTPSA id l10sm111502wru.59.2020.09.10.14.14.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Sep 2020 14:14:16 -0700 (PDT) From: Alejandro Colomar To: mtk.manpages@gmail.com Cc: linux-man@vger.kernel.org, linux-kernel@vger.kernel.org, Alejandro Colomar Subject: [PATCH 06/24] timer_create.2: Cast to 'unsigned long' rathen than 'long' when printing with "%lx" Date: Thu, 10 Sep 2020 23:13:27 +0200 Message-Id: <20200910211344.3562-7-colomar.6.4.3@gmail.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200910211344.3562-1-colomar.6.4.3@gmail.com> References: <20200910211344.3562-1-colomar.6.4.3@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Signed-off-by: Alejandro Colomar --- man2/timer_create.2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/man2/timer_create.2 b/man2/timer_create.2 index e9a8b8503..9c9907739 100644 --- a/man2/timer_create.2 +++ b/man2/timer_create.2 @@ -390,7 +390,7 @@ print_siginfo(siginfo_t *si) tidp = si\->si_value.sival_ptr; printf(" sival_ptr = %p; ", si\->si_value.sival_ptr); - printf(" *sival_ptr = 0x%lx\en", (long) *tidp); + printf(" *sival_ptr = 0x%lx\en", (unsigned long) *tidp); or = timer_getoverrun(*tidp); if (or == \-1) @@ -454,7 +454,7 @@ main(int argc, char *argv[]) if (timer_create(CLOCKID, &sev, &timerid) == \-1) errExit("timer_create"); - printf("timer ID is 0x%lx\en", (long) timerid); + printf("timer ID is 0x%lx\en", (unsigned long) timerid); /* Start the timer */ -- 2.28.0