xiaoxiang781216 commented on PR #6613: URL: https://github.com/apache/incubator-nuttx/pull/6613#issuecomment-1186193698
> > Yes, the GCC `printf` nano version has an option to enable FLOAT printing (both `float` and `double`) to reduce code size. > > The case with `long long` here is a bit more complicated. This PR still try to print "at least" instead of ignoring `%ll`/`%ull` at all, so it is not "pure" disable for `long long` (like disabling FLOAT print in GCC libc nano). That is a bit confusing as with "disable" of `CONFIG_LIBC_HAVE_LONG_LONG` the `%ll`/`%ull` should be "disabled" and not "truncated". > > Won't this create confusion and weird bugs? E.g., if a value > INT32_MAX is passed in, it will be truncated, printing wrong results? Yes, if you decide to disable CONFIG_LIBC_HAVE_LONG_LONG. it is never possible to get the small code size and the more functionality at the same time, but we give you the choice. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org