Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp1727918imb; Sun, 3 Mar 2019 04:47:09 -0800 (PST) X-Google-Smtp-Source: AHgI3IZiVILsC9SlZib7YLA2B/oVnFz41RDcWTTiQyC0zT7z/1jJZM8gb46gtYgiEjsLVcF7xcbf X-Received: by 2002:a62:1346:: with SMTP id b67mr15413270pfj.195.1551617229639; Sun, 03 Mar 2019 04:47:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551617229; cv=none; d=google.com; s=arc-20160816; b=CdePIEWRhWKOwAUBoxX31gmZ5Fb4mvqtjSW0eBSWdzT1yR1V7owzVTCPEwi5h3aBoL fx2LOi07R5CwmtEsSVwk1U6UkZ6R7z4dwbfVolztuAfv95InHkp41WcutOcBHA3VmV8q wDzjOUPvmhiQXga1Q2IZQSMR/3DeTk0n5dP01M1kfDhiFcdYGQ2YSetE0kg70RuIllKs WZA16b1uFIzHNNfuHOwZpTDWSTlKMCR5jNBu6EpuSZA8VSJokDn0Sv8LqQ8RjTprRDYj 71jOfRY459FQE3een1nkruny7kk1MEa6C7Fu+TD8EDBmATcUYqED9uGKYEdOMT+SegC9 mfuA== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=wmaRd8ftTs0lTwJsk22PI1aI1d7YGIyjW6+ZlePZZRA=; b=nyGM0sj48WN1WIZRfXluJz0/almL1CAO7wcv6D5yL48znIJ23V9WedHIK8Ef3KiXMs MmVwJW/SbUf4VKD3OT8P0dFkTYMRvlSPRVLa2F3nTxtMh0SewvmWDeVmPiKRiCaCMk2s fW1kJq8YKFzIfYWb5txicWsR8/BWRCbo9efMKEZa3UyzpJtIfctWV2xZ4kg1R2FMsAGT WqfGDzAEvqHto4lyQhyZbvtLN6wtjThHfY5yej8Cm9fyNZjO82YP5WsXZDN8Czlbm8FN wGVzaEBm2wv/8/OfqFX1pFo4RbEXWg57XodBiNwtTvkOFkzxTX+LpxSjasEPEYKgSHML v5lg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kragniz.eu header.s=google header.b=FxCPFdBU; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 90si2770993pfs.173.2019.03.03.04.46.39; Sun, 03 Mar 2019 04:47:09 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kragniz.eu header.s=google header.b=FxCPFdBU; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726210AbfCCMi0 (ORCPT + 99 others); Sun, 3 Mar 2019 07:38:26 -0500 Received: from mail-wm1-f65.google.com ([209.85.128.65]:53576 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726143AbfCCMi0 (ORCPT ); Sun, 3 Mar 2019 07:38:26 -0500 Received: by mail-wm1-f65.google.com with SMTP id e74so2073965wmg.3 for ; Sun, 03 Mar 2019 04:38:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kragniz.eu; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=wmaRd8ftTs0lTwJsk22PI1aI1d7YGIyjW6+ZlePZZRA=; b=FxCPFdBUCe/SxF0aNwT2urt3QRwAYO+32y3KXD4NuawGGWWesM+V1s3j51RWhqWy/g dHSzL7u/vb39uewF5j5S0qOjap2XQRWo2rN4+peaLR6HJROoBv4+FzmXU9OurngAvvUq +mAdo2zvj2sU4HDrsbuMjVTIA6sUn2JI9Wzoo= 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=wmaRd8ftTs0lTwJsk22PI1aI1d7YGIyjW6+ZlePZZRA=; b=QY4h0sG5sTIDt+nVIcy0q1wsf9gRZvxR8Qv+FVKR3juJ8/iOkK8bB9Wfzlk6M+0F73 Ki64h3y6ts29/MqoHkofpqJNTn6fvxPdIEAf5nygPhjDXMNZXRJnCM5SCx3hZsTd5eXT QC8P5C6U+pkC1He+U0UEiJoFcSpfXtsirXoAAgNqIGwzm7cE+EntEEXuO6FsuWNKuUWP kFRCefswwTEiDC88rl7Mwa6ySwO85o0BdqA1LGeGF1mwGIK7dqeLAe1QWG5jmgIoGT8O hP6aUJKbh4kpa0c6N+OvO9a7S79jwQ38EGhD1/z5acTtO5icXJjfxwCfgGZnJVZGEb0M LT/w== X-Gm-Message-State: AHQUAubbM1IwNhbpEu06WW28G6d2NYTy1kHhXeWigjoiqZIENMgLTrkA f7Uj/3X3CdzHnkxVsifnOSJHhINSUsM9eg== X-Received: by 2002:a7b:cbcd:: with SMTP id n13mr8701045wmi.92.1551616704496; Sun, 03 Mar 2019 04:38:24 -0800 (PST) Received: from localhost.localdomain ([95.149.160.3]) by smtp.gmail.com with ESMTPSA id t202sm9450783wmt.0.2019.03.03.04.38.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 03 Mar 2019 04:38:23 -0800 (PST) From: Louis Taylor To: corbet@lwn.net Cc: pmladek@suse.com, geert+renesas@glider.be, andriy.shevchenko@linux.intel.com, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, clang-built-linux@googlegroups.com, ndesaulniers@google.com, jflat@chromium.org, Louis Taylor Subject: [PATCH] docs: add extra integer types to printk-formats Date: Sun, 3 Mar 2019 12:36:47 +0000 Message-Id: <20190303123647.22020-1-louis@kragniz.eu> X-Mailer: git-send-email 2.20.1 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 A few commonly used integer types were absent from this table, so add them. Link: https://github.com/ClangBuiltLinux/linux/issues/378 Suggested-by: Nick Desaulniers Signed-off-by: Louis Taylor --- Documentation/core-api/printk-formats.rst | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Documentation/core-api/printk-formats.rst b/Documentation/core-api/printk-formats.rst index a7fae4538946..6f08b1b6240a 100644 --- a/Documentation/core-api/printk-formats.rst +++ b/Documentation/core-api/printk-formats.rst @@ -19,8 +19,16 @@ Integer types unsigned long %lu or %lx long long %lld or %llx unsigned long long %llu or %llx + short int %hd or %hx + unsigned short int %hu or %hx + char %hhd or %hhx + unsigned char %hhu or %hhx size_t %zu or %zx ssize_t %zd or %zx + s8 %hhd or %hhx + u8 %hhu or %hhx + s16 %hd or %hx + u16 %hu or %hx s32 %d or %x u32 %u or %x s64 %lld or %llx -- 2.20.1