[U-Boot] [PATCH] [UBI] Basic Unsorted Block Image (UBI) support v3 (#1)

Magnus Lilja lilja.magnus at gmail.com
Mon Nov 3 08:17:23 CET 2008


2008/11/3 Kyungmin Park <kmpark at infradead.org>:
> On Mon, Nov 3, 2008 at 6:01 AM, Magnus Lilja <lilja.magnus at gmail.com> wrote:
>>> +       ubi_msg("attached mtd%d to ubi%d", mtd->index, ubi_num);
>>> +       ubi_msg("MTD device name:            \"%s\"", mtd->name);
>>> +       ubi_msg("MTD device size:            %llu MiB", ubi->flash_size >> 20);
>>> +       ubi_msg("number of good PEBs:        %d", ubi->good_peb_count);
>>> +       ubi_msg("number of bad PEBs:         %d", ubi->bad_peb_count);
>>> +       ubi_msg("max. allowed volumes:       %d", ubi->vtbl_slots);
>>> +       ubi_msg("wear-leveling threshold:    %d", CONFIG_MTD_UBI_WL_THRESHOLD);
>>> +       ubi_msg("number of internal volumes: %d", UBI_INT_VOL_COUNT);
>>> +       ubi_msg("number of user volumes:     %d",
>>> +               ubi->vol_count - UBI_INT_VOL_COUNT);
>>> +       ubi_msg("available PEBs:             %d", ubi->avail_pebs);
>>> +       ubi_msg("total number of reserved PEBs: %d", ubi->rsvd_pebs);
>>> +       ubi_msg("number of PEBs reserved for bad PEB handling: %d",
>>> +               ubi->beb_rsvd_pebs);
>>> +       ubi_msg("max/mean erase counter: %d/%d", ubi->max_ec, ubi->mean_ec);
>>
>> All these should also be off by default IMO.
>
> These messages are default on kernel. If you want to off, we can add
> the another configuration to ubi_msg macro

Yes, but in the kernel you can alter the log-level.

Regards, Magnus


More information about the U-Boot mailing list