From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932377AbWB1MKb (ORCPT ); Tue, 28 Feb 2006 07:10:31 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932512AbWB1MKa (ORCPT ); Tue, 28 Feb 2006 07:10:30 -0500 Received: from gprs189-60.eurotel.cz ([160.218.189.60]:12717 "EHLO amd.ucw.cz") by vger.kernel.org with ESMTP id S932377AbWB1MK3 (ORCPT ); Tue, 28 Feb 2006 07:10:29 -0500 Date: Tue, 28 Feb 2006 13:04:18 +0100 From: Pavel Machek To: Jeff Garzik Cc: Randy Dunlap , lkml , linux-ide@vger.kernel.org, akpm@osdl.org Subject: Re: [PATCH 2/13] ATA ACPI: debugging infrastructure Message-ID: <20060228120418.GB3695@elf.ucw.cz> References: <20060222133241.595a8509.randy_d_dunlap@linux.intel.com> <20060222135133.3f80fbf9.randy_d_dunlap@linux.intel.com> <20060228114500.GA4057@elf.ucw.cz> <44043B4E.30907@pobox.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <44043B4E.30907@pobox.com> X-Warning: Reading this can be dangerous to your mental health. User-Agent: Mutt/1.5.9i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Út 28-02-06 07:00:14, Jeff Garzik wrote: > Pavel Machek wrote: > >I hate to see debugging infrastructure like this. We already have it > >in ACPI and it is nasty/useless. It hides serious errors during normal > >run, while if you turn on the debugging, it floods logs so that > >it is unusable, too. I end up having to replace dprintks with > >printks... nasty. > > Then you clearly don't understand what the code is doing. > Fine-grained No, I do not... code is so full of printk()s that it is unreadable. > message selection allows one to turn on only the messages needed, and > only for the controller desired. Otherwise, it is nearly impossible to > debug one SATA controller while booting off another. Now, maybe message selection is neccessary, but having printk at begining of each function is not way to go. Pavel -- Web maintainer for suspend.sf.net (www.sf.net/projects/suspend) wanted...