From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 027B1EB64DC for ; Mon, 3 Jul 2023 14:58:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229791AbjGCO6u (ORCPT ); Mon, 3 Jul 2023 10:58:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41382 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229656AbjGCO6r (ORCPT ); Mon, 3 Jul 2023 10:58:47 -0400 Received: from mga06.intel.com (mga06b.intel.com [134.134.136.31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 98940E43; Mon, 3 Jul 2023 07:58:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1688396326; x=1719932326; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=FHly7jrfHT4AJToL1z+8Wr8S5HSfEj4odBZvKbf6Fns=; b=bPOzGRbYiVt3cFLrD43eMfIv0pft+1QeLtw2++9uNdd2xm/QgU5W+iRK JHIG1QkRg7sZtDljdZO7Zx+PcWUMVgq6AWAfTw+rsQzZSMBEexokmeIsx QVw57syQWub9+D7/2Afvs1w7E6qJY+EPV4qFrHtKgwEMiaIBvjXuTgL6x UoJTAfmB0JtBQQdTQmJPkIRGaIS/fPCkAxUSFUGBshLO9GbOpJ6GP8IX3 3DF+pjjahUrsIA12b4moZONZCE5hMEum77M/Ik1K106wXheoTtXEIGVL3 nqw8Hi3FJHH3J4KFNXI5zYkmJGc9s2gSdVSSKLmSohVDdvFJlIYKwO/53 w==; X-IronPort-AV: E=McAfee;i="6600,9927,10760"; a="426587582" X-IronPort-AV: E=Sophos;i="6.01,178,1684825200"; d="scan'208";a="426587582" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Jul 2023 07:58:45 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10760"; a="718625424" X-IronPort-AV: E=Sophos;i="6.01,178,1684825200"; d="scan'208";a="718625424" Received: from black.fi.intel.com ([10.237.72.28]) by orsmga002.jf.intel.com with ESMTP; 03 Jul 2023 07:58:43 -0700 Received: by black.fi.intel.com (Postfix, from userid 1003) id 6170B13C; Mon, 3 Jul 2023 17:58:46 +0300 (EEST) From: Andy Shevchenko To: linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Petr Mladek , Steven Rostedt , Sergey Senozhatsky , Andy Shevchenko , Rasmus Villemoes , Jonathan Corbet Subject: [PATCH v1 2/2] docs: printk-formats: Treat char as always unsigned Date: Mon, 3 Jul 2023 17:58:39 +0300 Message-Id: <20230703145839.14248-2-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.40.0.1.gaa8946217a0b In-Reply-To: <20230703145839.14248-1-andriy.shevchenko@linux.intel.com> References: <20230703145839.14248-1-andriy.shevchenko@linux.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The Linux kernel switched to have char be equivalent to usigned char. Reflect this in the printk specifiers. Fixes: 3bc753c06dd0 ("kbuild: treat char as always unsigned") Signed-off-by: Andy Shevchenko --- Documentation/core-api/printk-formats.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Documentation/core-api/printk-formats.rst b/Documentation/core-api/printk-formats.rst index 2f3a6e0b3fc4..4451ef501936 100644 --- a/Documentation/core-api/printk-formats.rst +++ b/Documentation/core-api/printk-formats.rst @@ -15,8 +15,9 @@ Integer types If variable is of Type, use printk format specifier: ------------------------------------------------------------ - char %d or %hhx + signed char %d or %hhx unsigned char %u or %x + char %u or %x short int %d or %hx unsigned short int %u or %x int %d or %x -- 2.40.0.1.gaa8946217a0b