[PATCH] ash: support platforms that don't have '%m' printf specifier

Ron Yorston rmy at pobox.com
Thu Jul 27 15:48:58 UTC 2017


Kang-Che Sung wrote:
>dietlibc supports %m only if WANT_ERROR_PRINTF is defined in
><dietfeartures.h> when building, and its commented out by default.
>I don't know how to check the macro WANT_ERROR_PRINTF in
>the dietlibc build environment, but I think busybox needs to be
>aware of this.

There doesn't seem to be anything in a standard build of dietlibc
to allow detection of this at (application) build-time.  The
dietfeatures.h include file is only available when the library is
built; it isn't installed.

I suppose if the default is for '%m' to be disabled that's what
BusyBox should assume.  If someone has built dietlibc with the
non-default option they should be capable of doing the same for
BusyBox.

Unless any dietlibc users have a better suggestion...

Ron


More information about the busybox mailing list