* fix(format): remove LV_FORMAT_ATTRIBUTE from the function body
since it's enough to append LV_FORMAT_ATTRIBUTE to function declaration
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
* fix(format): add LV_FORMAT_ATTRIBUTE to lv_snprintf and lv_log
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
* fix(format): fix the format specifier warning
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
* fix(log): change fwrite to puts since not all platform support fwrite
This reverts commit 539388a66f.
* fix(log): don't call printf and custom_print_cb at the same time
* fix(log): remove 768B temp buffer if LV_LOG_PRINTF == 1
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
* feat(printf): support %pV format specifier
to support the recursive print:
https://www.kernel.org/doc/html/latest/core-api/printk-formats.html
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
* fix(log): save 256B temp buffer if LV_LOG_PRINTF == 0
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
* fixes for rp2 port (only format strings: int/int32_t mismatch, %d -> %ld)
* use portable PRId32 printf format, #include <inttypes.h> via lv_printf.h
* define LV_PRId32 macro (for int)
* figure out good way to build inside Micropython (plus indentation)
* re-add examples (lost on the way)
* hopefully fix PRI32d
* Revert off CMakeLists.txt changes so that this is about printf only