From 09cf143b2a9388828c5cc7f9a12591822eac5d1b Mon Sep 17 00:00:00 2001 From: Kwarde Date: Wed, 16 Jul 2025 13:25:59 +0200 Subject: [PATCH] Fix printf comment: %8x->%#8x --- src/console.asm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/console.asm b/src/console.asm index edf76d2..8b08758 100644 --- a/src/console.asm +++ b/src/console.asm @@ -75,7 +75,7 @@ puts: ; %#{x} Use prefix for printed number (non-decimal). Supported specifiers: x, X, b, o. Works in combination with width specifier (see below) ; %[#]n* Pad left, n chars (maximum 64). Supported specifiers: d, i, u, x, X, b, o ; *[#]0n* Pad left with zeroes, n chars (maximum 64). Supported specifiers: d, i, u, x, X, b, o -; NOTE: Prefix not included in padding length, so %8x for '0x12345678' becomes ' 0x12345678' (and '%08x' => '0x0012345678') +; NOTE: Prefix not included in padding length, so %#8x for '0x12345678' becomes ' 0x12345678' (and '%#08x' => '0x0012345678') ; Unsupported specifiers are printed as-is ; For all specifiers (except %%) an argument is expected. Mismatch between arguments given and specifiers provided will lead to issues ;