aitos-io / BoAT-X-Framework

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

Compile note in expansion of macro 'BoatLog_hexdump' #1269

Open PanHH opened 1 year ago

PanHH commented 1 year ago

Describe the bug Compile note in expansion of macro 'BoatLog_hexdump'

boatcita.c:181:5: note: in expansion of macro 'BoatLog_hexdump'
     BoatLog_hexdump(BOAT_LOG_VERBOSE, "Transaction Message(sign     )",
     ^~~~~~~~~~~~~~~
/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 );\
                ^
boatcita.c:194:5: note: in expansion of macro 'BoatLog_hexdump'
     BoatLog_hexdump(BOAT_LOG_VERBOSE, "Transaction Message(chain_id )",
     ^~~~~~~~~~~~~~~
boatcita.c:35:12: warning: unused variable 'sig_parity' [-Wunused-variable]
     BUINT8 sig_parity = 0;
            ^~~~~~~~~~