Re: [PATCH] mmc: print message if a card supports secure erase/trim

Richard Weinberger
2015-01-27T18:09:04Z

Am 27.01.2015 um 19:04 schrieb Alexander Holler:
> Am 27.01.2015 um 18:53 schrieb Arend van Spriel:
>
>> Ever used rgrep or grep -R. Anyway, if this is you use-case what about
>> the gazillion other pieces of info in the kernel. When moving in that
>> direction you can be sure dmesg will flush out.
>
> Sorry, never heard about that -R and wasn't aware that the kernel does a lot of things. ;)
>
> I don't want that ftrace stuff appears in dmesg, but I like to do
>
> dmesg | grep -i mmc (or whatever is of interest)
>
> instead of
>
> grep -Rsi mmc /sys/<a hundred tabs to search a matching direcory> or something like
>
> find /sys -iname '*mmc*' -exec <more silly complications> \;

You don't have to use grep or find.
Add a sysfs attribute, document it in Documentation/ABI and done.
By documenting stuff you'll make the world a better place.

Thanks,
//richard