Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750923AbZGPGxG (ORCPT ); Thu, 16 Jul 2009 02:53:06 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1750739AbZGPGxF (ORCPT ); Thu, 16 Jul 2009 02:53:05 -0400 Received: from mail-fx0-f218.google.com ([209.85.220.218]:34372 "EHLO mail-fx0-f218.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750720AbZGPGxD (ORCPT ); Thu, 16 Jul 2009 02:53:03 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=date:from:to:cc:subject:message-id:mail-followup-to:references :mime-version:content-type:content-disposition:in-reply-to :user-agent; b=EHRX+N6cX6LGE1ovIBu9wwUFGG0gWhuVJYKeyouOFjSNNjmgJYi9RMFIFrNvqnF1Es Q+bjgWbOm2R/VkXnCzDdlB4e46BODrUcmKvkRfAoZh2QWT4zsuJsa5vDOB3OA60iZZKO o04vTEpCS2HGsdO2fGjptpyTeIV3jdMlbTsE8= Date: Thu, 16 Jul 2009 08:52:33 +0200 From: Borislav Petkov To: David Miller Cc: bzolnier@gmail.com, linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 0/4] ide-tape: misc stuff Message-ID: <20090716065233.GA7242@liondog.tnic> Mail-Followup-To: Borislav Petkov , David Miller , bzolnier@gmail.com, linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org References: <1247671100-8173-1-git-send-email-petkovbb@gmail.com> <20090715.111606.193724419.davem@davemloft.net> <20090715184350.GA13708@liondog.tnic> <20090715.124150.120992830.davem@davemloft.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20090715.124150.120992830.davem@davemloft.net> User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2312 Lines: 50 On Wed, Jul 15, 2009 at 12:41:50PM -0700, David Miller wrote: > From: Borislav Petkov > Date: Wed, 15 Jul 2009 20:43:50 +0200 > > > Well, the downside to that is whenever there's a bug report and I want > > the user to do a debug build and send me the output, I'll have to rehash > > that debug patch and send it to her/him, maybe teach her/him how to > > patch a kernel, build it and catch the output and send it my way before > > we do some real work. Having the change upstream makes it _a_ _lot_ > > _more_ easier to do that and this is experience talking, we had several > > scenarious like that already. > > Your PFX patch has no effect at all, it's just cleanup noise. Yes, that one I don't need, I can drop it. > The other patch moves the debug mask from one place to another, > why can't the debug selections bet set properly as is? Where the debug_mask is set is all the same to me, its the additional information added to the debug calls that I care about. I don't mention that in the commit message which is my bad, sorry, will fix. With those you can actually follow what happens, for example: [ 51.945800] ide-tape: ide_tape_get_bsize_from_bdesc: blk_size: 512, write_prot: 0 [ 51.945821] ide-tape: idetape_chrdev_ioctl: cmd: 0x40086d01 [ 51.945826] ide-tape: idetape_mtioctop: MTIOCTOP ioctl: mt_op: 13, mt_count: 1 [ 51.945830] ide-tape: idetape_rewind_tape: enter [ 51.945843] ide-tape: idetape_do_request: cmd: 0x1, sector: 4294967295, nr_sectors: 0 Those debug calls were simply not there/not complete wrt to the information they were dumping because nobody had an ide-tape to play with. After I got one and started debugging, I've added that missing information which made a dbg output more understandable (e.g. request cmd, args the ioctl is being called with, etc.) This is the only reason for that change and because it doesn't break anything but helps a whole lot when debugging, it's a win-win thing and that's why I advocate its inclusion so vehemently :). Thanks. -- Regards/Gruss, Boris. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/