From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752655AbYHRJXw (ORCPT ); Mon, 18 Aug 2008 05:23:52 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751156AbYHRJXo (ORCPT ); Mon, 18 Aug 2008 05:23:44 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:49594 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751105AbYHRJXm (ORCPT ); Mon, 18 Aug 2008 05:23:42 -0400 Date: Mon, 18 Aug 2008 11:23:20 +0200 From: Pavel Machek To: Tim Hockin Cc: Jan Blunck , Greg KH , Joe Perches , schwidefsky@de.ibm.com, linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org, lf_kernel_messages@lists.linux-foundation.org, Andrew Morton , Michael Holzheu , Gerrit Huizenga , Randy Dunlap , Jan Kara , Sam Ravnborg , Jochen =?iso-8859-2?B?Vm/f?= , Kunai Takashi , Tim Bird Subject: Re: [patch 1/3] kmsg: Kernel message catalog macros. Message-ID: <20080818092317.GD6635@atrey.karlin.mff.cuni.cz> References: <20080730165656.118280544@de.ibm.com> <20080730171156.824640459@de.ibm.com> <1218733457.2651.11.camel@localhost> <1218769739.24527.76.camel@localhost> <20080815034419.GB803@suse.de> <20080815112117.GP10078@bolzano.suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.13 (2006-08-11) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi! > > I don't think that he wants to unify all the printk's in the system. I don't > > think that reporting all errors "in the same way as an ATA error" makes any > > sense. That would just lead to very stupid and unnatural messages for all > > errors that are not like "ATA errors". Annotation of existing errors is a much > > more flexible and feasible solution to that problem. > > Please don't misinterpret. I don't want to make other errors parse > like an ATA error, I want to make the plumbing be parallel. I want > one umbrella mechanism for reporting things that are more important > than just-another-printk(). > > Because frankly, "parse dmesg" is a pretty crappy way to have to > monitor your system for failures, and I am tired of explaining to > people why we still do that. "parse dmesg" does not work for monitoring your system for failures; dmesg buffer can overflow. If something fails, you should get errno returned for userspace, and that's where you should be doing the monitoring. So... what parts don't return enough information to userspace so that you need to parse dmesg? Lets fix them. Pavel -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html