Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1394606pxk; Thu, 10 Sep 2020 14:18:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzREW0VijS6kkuoG2nEdH33+IsOkkFUfEE7M4te+GPR5KAZDzQNEIrAULP5UEllgp2hCqje X-Received: by 2002:a17:906:a153:: with SMTP id bu19mr10812619ejb.142.1599772726516; Thu, 10 Sep 2020 14:18:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599772726; cv=none; d=google.com; s=arc-20160816; b=wPOue93TF4JGkf5u7eMQBR+Gngr5C6+4k3SntwzMcpqsGYHi/01irsGtP14kU3R5/h FZ3QB+6YN2WHwOIpSiRWOQSRQymZa9n9Xvwdw4gPy4UupVcePIKVvt8pt3c3VE3KCGJ7 3ArHFlOab/5spPezjW7aNufXYcJj8EPqgixJbf+Pb7slU4se3OsVg7Tavw5BY9sA8AMA IGmbX6TpbRBVAlSSZyzLRylOvvSAKBhV/ssqN2Cef4+jOPj8GYw8JZ3Qyt7EAy18Vw1H eJd4WtUk8tSKqAfkUkHDl3BKcWHoXWVz95e4ocBzVtT/AP/pHYgKkksYgPhrOIoHYLBy /3Qw== 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=kwShISS5ZB0kDk4IcHPLX6XHH+agC7Q2CSl/qZsRSYM=; b=ngVTH7GVw2YMHVC9egUVn2QiFv0DdpsloCpBu/XXgKI52Ar7qxdSnkcNIfjgzoN5rj gt9TRFKj3UbZ4V+qLhrScqRSVaq7zyQ4FRQmoI8q6EwKXG7iuqs3bKdhgOkpgFx2wXOp EfHSsy61YFGhd50zce+0Ir3sFBXNd3lyK5Ucv5UMXSjZ2ZgPWN7fd308juINblAesIK2 DyG5hCVB1Q7NsYycPG28bubxkYg4Ovfq94APlGyJuzj5oKYSYqJ+2Ct8nt+jlZgRuiBj 01pmTyfnY/zklrTRz3n87Vaom51/9hltnFzfTcQu0qQfvmO717bix3ijXcmEzQ+Z0FCj ZKUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=OMXaTNmN; 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 r25si4437229edo.12.2020.09.10.14.18.23; Thu, 10 Sep 2020 14:18:46 -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=OMXaTNmN; 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 S1726966AbgIJVPx (ORCPT + 99 others); Thu, 10 Sep 2020 17:15:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34736 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727992AbgIJVOO (ORCPT ); Thu, 10 Sep 2020 17:14:14 -0400 Received: from mail-wm1-x331.google.com (mail-wm1-x331.google.com [IPv6:2a00:1450:4864:20::331]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A5C96C061757; Thu, 10 Sep 2020 14:14:13 -0700 (PDT) Received: by mail-wm1-x331.google.com with SMTP id x23so1958640wmi.3; Thu, 10 Sep 2020 14:14:13 -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=kwShISS5ZB0kDk4IcHPLX6XHH+agC7Q2CSl/qZsRSYM=; b=OMXaTNmNYAKO6IRTMqvgyLRLrWH2xNHQ+3nT1dgRCbTAfZxTPkB1WY5YLxlvooRpgn AolfZNb2brFThlROnFyOHfi4dNruSzPMbiPb1wu6xvhtTNikH4hSgF6miA7MgBcA5UDy lJfx2+vdtjAXWlqn31bcOQO3ucEzPLoZ89kXtetcYzpQKn61yrXYaT9Gh4dGAkaCz8TE so3IhDB2MPENZGtjxKxIa1N/mlzKbFTf85mvAyeO8Z8RJrJCga/4jNpp/W08EvgVn9qJ Lz2iteKxroG2cfY5IHSuLP54jj/bFhDlICOwSerhG7EU3tVNnOoMNiLeOwL5Uiy827U+ +vCQ== 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=kwShISS5ZB0kDk4IcHPLX6XHH+agC7Q2CSl/qZsRSYM=; b=fDs4r96eUuhFLdC2zMoazS8Tr+t6fkvnC9X/if13OoSCbmJnaLJkiljPeDX4nEppar p5ku27ErEuQtQ8Z6Uw8qRlufU/n/jP1ADgYZG8crBDOnUz8MShCtnVDKOOUJT81wDdFN z+bg6MgJCPwZuTZhP/YqvcTQ+UpKsyKjtPK1kunNxbImv9SHAtaWHfxzBCSw3NeqDgUC uvL/u/t3klu24aSwDw1bTBHygjOQNAD7wyO9WPnF/hFBxBt22tUvNaI5q5Av1bgczufe FIaepxDKWH0svEH7UkhaCX3MN0XaJbiohtR4K5ZcyJv4BrzvhfNOR6oTP2BAlOlkYKfJ P5Xg== X-Gm-Message-State: AOAM5318F7lqysor7Pmhjull0j36Ofuso23+B1GuAssP2k1NZ2BPEC9p 17RGO7Yj9Il2wIlvm7COqSw= X-Received: by 2002:a7b:c404:: with SMTP id k4mr1924214wmi.168.1599772452227; Thu, 10 Sep 2020 14:14:12 -0700 (PDT) Received: from localhost.localdomain ([170.253.60.68]) by smtp.googlemail.com with ESMTPSA id l10sm111502wru.59.2020.09.10.14.14.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Sep 2020 14:14:11 -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 02/24] endian.3: Use 'PRIx32' rather than "%x" when printing 'uint32_t' values Date: Thu, 10 Sep 2020 23:13:23 +0200 Message-Id: <20200910211344.3562-3-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 --- man3/endian.3 | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/man3/endian.3 b/man3/endian.3 index bdf1efd7e..3a898bb02 100644 --- a/man3/endian.3 +++ b/man3/endian.3 @@ -147,6 +147,7 @@ htobe32(x.u32) = 0x11223344 \& .EX #include +#include #include #include #include @@ -164,9 +165,9 @@ main(int argc, char *argv[]) x.arr[2] = 0x33; x.arr[3] = 0x44; /* Highest-address byte */ - printf("x.u32 = 0x%x\en", x.u32); - printf("htole32(x.u32) = 0x%x\en", htole32(x.u32)); - printf("htobe32(x.u32) = 0x%x\en", htobe32(x.u32)); + printf("x.u32 = 0x%"PRIx32"\en", x.u32); + printf("htole32(x.u32) = 0x%"PRIx32"\en", htole32(x.u32)); + printf("htobe32(x.u32) = 0x%"PRIx32"\en", htobe32(x.u32)); exit(EXIT_SUCCESS); } -- 2.28.0