Fail to mount ubifs

Jon Ringle jon at ringle.org
Tue Jan 12 19:40:00 EST 2010


On Tue, Jan 12, 2010 at 4:37 PM, Artem Bityutskiy <dedekind1 at gmail.com> wrote:
>> >> Logical eraseblock size:                 130944 bytes, f KiB
>> >
>> > Hmm, this f KiB looks weird.
>>
>> Why is it weird? It is 128 bytes less than my PEB size of 0x20000.
>
> Because "f" is strange, I did not expect this.
> The print is:
>        printf("%s%.1f KiB", p, (double)bytes / 1024);
>
> see ubiutils_print_bytes() in mtd-utils/ubi-utils/src/common.c
>
> Not sure why it prints "f KiB" on your system.

Apparently the printf implementation in klibc does not support %f that
is used in
ubiutils_print_bytes()

Jon



More information about the linux-mtd mailing list