aitos-io / BoAT-X-Framework

BoAT-X Blockchain Application Framework for IoT
http://www.aitos.io
Apache License 2.0
925 stars 49 forks source link

Compile warning for the expects argument #1251

Open PanHH opened 1 year ago

PanHH commented 1 year ago

Describe the bug Compile warning for the expects argument

Kindly include following information if applicable:/home/john/BoAT-X-Framework/vendor/platform/linux-default/src/log/boatlog.h:93:16: warning: format '%d' expects argument of type 'int', but argument 4 has type 'size_t {aka long unsigned int}' [-Wformat=]
    BoatPrintf( "%s: %s[%03d]: ", g_log_level_name_str[level-1], title, len );\
                ^

1667872437432