Skip to contentSkip to conversation

ubifs: Fix the printing type of c->big_lpt

PATCH kechengsong 1 participant 1 message Nov 2, 2020

lore
Share & tools
lore
#0 lore raw
Quoted 4 lines · Chengsong Ke

Ubifs uses %d to print c->big_lpt, but c->big_lpt is a variable of type unsigned int and should be printed with %u.

Quoted 8 lines

Well, it is:
unsigned int big_lpt:1;
So, either 0 or 1.

Does changing it to %u silence some static checker or is there some other problem I don't see right now? :-)

Thanks,
//Richard

This is just a coding style issue, I found in the ubifs code. :-) Thanks,
//Chengsong Ke