[PATCH 0/3] lib: uuid: fix uuid_str_to_le_bin() on 32-bit

Heinrich Schuchardt heinrich.schuchardt at canonical.com
Sun Nov 3 08:11:57 CET 2024


The lib_test_uuid_to_le test fails on 32-bit systems. But we never caught
this in our CI because we never ran any of our C unit tests on 32-bit.

Enable CONFIG_UNIT_TEST on qemu_arm_defconfig.

hextoul() cannot convert a string to a 64-bit number on a 32-bit system.
Use the new function hextoull() instead.

Heinrich Schuchardt (3):
  lib: provide function hextoull()
  lib: uuid: fix uuid_str_to_le_bin() on 32-bit
  configs: enable UNIT_TEST on qemu_arm_defconfig

 configs/qemu_arm_defconfig |  1 +
 include/vsprintf.h         | 13 +++++++++++++
 lib/strto.c                |  5 +++++
 lib/uuid.c                 |  3 ++-
 4 files changed, 21 insertions(+), 1 deletion(-)

-- 
2.45.2



More information about the U-Boot mailing list