Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1396106pxk; Thu, 10 Sep 2020 14:21:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyTrpwh+jo2EcS21pGzlZ1RGNEw3d1l1I4KUUcUIfS7SC1g8iGd7t0hXdJYSrZTymN5pRrH X-Received: by 2002:a05:6402:45a:: with SMTP id p26mr12107705edw.8.1599772880015; Thu, 10 Sep 2020 14:21:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599772880; cv=none; d=google.com; s=arc-20160816; b=BbqdAUMZJdSC3CGyJpTRDyd8E6swhgZPFT2PVeUtex+7CDuF5P6DxkSTidFqrlgjNd CuJpFyuqgHeT7feO1MprspvlKc3C944jOfb8FAEygTI/YHUzSUQ0yBm9zWnd8xXNhYxR DdniW0i1XMB8QuIK2m6mowc5Zw+adDyO8rWmvMppfi8zlyFlyrM2VcCOG6Q5di6tifKT LUFxunQci78Vd00FMde7+puypsLN4Elhzj1mqw1P9jmTCzdH3QLUs47A9R0TWaESv/Zh +Dh6gJTVzykQFdKD8bJHz/hG50chADvYn4AFRkBDlkf7BbtGTf+PuoiOzX8as+V98al1 5RuA== 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=VbC5saaYZHnTXOXwHebFrJkh2FffiwaEU7e2jnpZU5k=; b=s6/MubFmh8L/wIFbcDFgdxkcoeHa7zVu7tFGK8Yffy4+TZwBt/NUAG0waqcPorlavI j0TgVr+bepBVf2/+sowzdFZruPmxv4OZtdIZsQtZXRQH+rANMsQW/SIaDHk21/PcOQlA GhDojE8PdafksiEcsTOr6HJMp61Dx+Ql4UUQ65hBHKsa9n+oIl2Axwi3pqlZ/amV3mQc YcVFhx8vHzpdy/Zl/4Ljop4caOoJf38YtS6E2GM3rgM8ECbn7bZFcEp/WyhPM9WeDEdn 0ml1x+S2RhVGeFTNOKb8A/TqwyH2zy3p+vBiycMQretEXTU2ucR1wKZIkgdKcAtweaxF o2Vg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=t7jKxizK; 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 n25si4409942ejc.572.2020.09.10.14.20.57; Thu, 10 Sep 2020 14:21:20 -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=t7jKxizK; 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 S1728193AbgIJVTK (ORCPT + 99 others); Thu, 10 Sep 2020 17:19:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34836 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728023AbgIJVOo (ORCPT ); Thu, 10 Sep 2020 17:14:44 -0400 Received: from mail-wm1-x330.google.com (mail-wm1-x330.google.com [IPv6:2a00:1450:4864:20::330]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 42028C06179F; Thu, 10 Sep 2020 14:14:25 -0700 (PDT) Received: by mail-wm1-x330.google.com with SMTP id l9so2093347wme.3; Thu, 10 Sep 2020 14:14:25 -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=VbC5saaYZHnTXOXwHebFrJkh2FffiwaEU7e2jnpZU5k=; b=t7jKxizKOsHR0GZ9KH2Q7Mrk4zJF39Q0887R11FPxyKx7wPPMH1bYZELE6EqzfO8Hl vZPjrmhex4WpoxUqCuDbqf59PD6+LlE9djSMgzIjVZGdsovY89Oc+MQvxCiKLQdut6Zo b2aLeoaUaYDVlHxdyrwk02S1pmS0vCJ7JejQJD8g+4IC0pU0ZuUavKA41p95EufAJ2TW TJFkn7UVvtf8ISZfF/3ZpvP7NArBQAEyoqHSCYZdDPqf4WsY2HqYrx/efI6AVCTbH1l/ wXFUX3MgfA3+LE55if5LKJka1UWrLZRTur9T3wXw6PDOaGs8ZliUDDe9hUGLawTSPE7R nR9Q== 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=VbC5saaYZHnTXOXwHebFrJkh2FffiwaEU7e2jnpZU5k=; b=fq4D3LYoCe7WCXvXNOPHjV3z+QJFXD+3pJtqriJlGuYCrRGVuv7Ze7jUftrTnPxG2R jVBUyvIrLjmi2GQiTePncNV3j7Hbn9zw9UC5uzLYaxGfWSi/MYS1E7cMKmKaT9MxzA33 MnTmMKhcUs2n50WAGfMzsGp5dpT+k/0JWP0y1Fz3DhLiDMR7SDAx8Emge78gQxv+Tpuu tKHZtUIZ1Sb3fBeuQwMoP3MDjp6Cy5WrdEXmz7r/LlQysKdRcOpZX2xNE6R8CUy999tJ q1Tu2zVXWkNFHmzbWyhbRHDezmlORoQNFaCcpbYDaFacxLQVUweWiQkqhKbAF9YaIabN 7rOg== X-Gm-Message-State: AOAM532/1SXkpEaP9Qx9irV3NbZmyVtFAq6P/p7xcpE25q57MnJSEjob y+Z1GqaFmW8qb0Y6RnnbC9Q= X-Received: by 2002:a05:600c:2215:: with SMTP id z21mr1912230wml.176.1599772462037; Thu, 10 Sep 2020 14:14:22 -0700 (PDT) Received: from localhost.localdomain ([170.253.60.68]) by smtp.googlemail.com with ESMTPSA id l10sm111502wru.59.2020.09.10.14.14.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Sep 2020 14:14:21 -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 11/24] stat.2: Remove unneeded cast Date: Thu, 10 Sep 2020 23:13:32 +0200 Message-Id: <20200910211344.3562-12-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 Both major(3) and minor(3) return an 'unsigned int', so there is no need to use a 'long' for printing. Moreover, it should have been 'unsigned long', as "%lx" expects an unsigned type. Signed-off-by: Alejandro Colomar --- man2/stat.2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/man2/stat.2 b/man2/stat.2 index b35e3c615..3418e1b5d 100644 --- a/man2/stat.2 +++ b/man2/stat.2 @@ -664,8 +664,8 @@ main(int argc, char *argv[]) exit(EXIT_FAILURE); } - printf("ID of containing device: [%lx,%lx]\en", - (long) major(sb.st_dev), (long) minor(sb.st_dev)); + printf("ID of containing device: [%x,%x]\en", + major(sb.st_dev), minor(sb.st_dev)); printf("File type: "); -- 2.28.0