diff options
| author | David Laight <david.laight.linux@gmail.com> | 2026-03-08 11:37:36 +0000 |
|---|---|---|
| committer | Thomas Weißschuh <linux@weissschuh.net> | 2026-03-20 17:55:51 +0100 |
| commit | 8df70ee45b1383114cdcaa9b2fe7449cdf5f46d5 (patch) | |
| tree | b8fb1defd5ac9ab9b050522c46cd9531031d359c /include/net/phy/git@git.tavy.me:linux.git | |
| parent | b43be424343407661d5e7c79a3584a37b91a88bb (diff) | |
tools/nolibc/printf: Prepend sign to converted number
Instead of appending the converted number to the sign, convert first
and then prepend the sign (or "0x").
Use the length returned by u64toh_r() instead of calling strlen().
Needed so that zero padding can be inserted between the sign and digits
in an upcoming patch.
Signed-off-by: David Laight <david.laight.linux@gmail.com>
Acked-by: Willy Tarreau <w@1wt.eu>
Link: https://patch.msgid.link/20260308113742.12649-12-david.laight.linux@gmail.com
Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Diffstat (limited to 'include/net/phy/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
