From mboxrd@z Thu Jan 1 00:00:00 1970 From: Richard Weinberger Subject: Re: [PATCH] mmc: print message if a card supports secure erase/trim Date: Tue, 27 Jan 2015 19:09:04 +0100 Message-ID: <54C7D440.6000509@nod.at> References: <1422359304-30321-1-git-send-email-holler@ahsoftware.de> <54C77E69.7050600@ahsoftware.de> <20150127120855.GA9254@pd.tnic> <54C7816A.8050800@ahsoftware.de> <54C78524.3070901@nod.at> <54C7881F.6020501@ahsoftware.de> <20150127142120.GA3351@pd.tnic> <54C7C2EC.7010605@ahsoftware.de> <20150127172415.GC25043@home.goodmis.org> <54C7CD1C.1060601@ahsoftware.de> <54C7D08E.8030309@broadcom.com> <54C7D31D.6090109@ahsoftware.de> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <54C7D31D.6090109@ahsoftware.de> Sender: linux-kernel-owner@vger.kernel.org To: Alexander Holler , Arend van Spriel Cc: Steven Rostedt , Borislav Petkov , linux-mmc@vger.kernel.org, LKML , Chris Ball , Ulf Hansson List-Id: linux-mmc@vger.kernel.org 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/ or something like > > find /sys -iname '*mmc*' -exec \; 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