[PATCH v2 1/4] lib: provide function hextoull()

Tom Rini trini at konsulko.com
Wed Nov 13 15:12:33 CET 2024


On Wed, Nov 13, 2024 at 06:39:43AM -0700, Simon Glass wrote:
> Hi Heinrich,
> 
> On Sun, 3 Nov 2024 at 15:42, Heinrich Schuchardt
> <heinrich.schuchardt at canonical.com> wrote:
> >
> > We often convert hexadecimal strings to hextoull(). Provide a wrapper
> > function to simple_strtoull() that does not require specifying the radix.
> >
> > Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt at canonical.com>
> > ---
> > v2:
> >         no change
> > ---
> >  include/vsprintf.h | 13 +++++++++++++
> >  lib/strto.c        |  5 +++++
> >  2 files changed, 18 insertions(+)
> 
> Could you add a test?

We have tests already for this. But they weren't being run, which is
covered by 4/4.

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20241113/361948cd/attachment.sig>


More information about the U-Boot mailing list