EmbeddedController icon indicating copy to clipboard operation
EmbeddedController copied to clipboard

util/uut/cmd.c: Use PRIu32 as conversion specifier for uint32_t

Open szsam opened this issue 2 years ago • 0 comments

If using '%lu', the argument should be of type 'unsigned long', but the actual argument resp_num is of type 'uint32_t'. Calling a printf-like function with the wrong type of arguments causes unpredictable behavior.

Also, use PRIX8 to print uint8_t.

szsam avatar May 22 '23 19:05 szsam