From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joe Perches Subject: Re: [PATCH 3/5] ide: add a driver-wide debugging macro Date: Sun, 17 Aug 2008 11:13:06 -0700 Message-ID: <1218996786.24527.115.camel@localhost> References: <1218993826-4571-1-git-send-email-petkovbb@gmail.com> <1218993826-4571-4-git-send-email-petkovbb@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Return-path: Received: from 136-022.dsl.LABridge.com ([206.117.136.22]:2695 "EHLO mail.perches.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751661AbYHQSNN (ORCPT ); Sun, 17 Aug 2008 14:13:13 -0400 In-Reply-To: <1218993826-4571-4-git-send-email-petkovbb@gmail.com> Sender: linux-ide-owner@vger.kernel.org List-Id: linux-ide@vger.kernel.org To: Borislav Petkov Cc: Bartlomiej@gollum.tnic, Zolnierkiewicz@gollum.tnic, bzolnier@gmail.com, linux-kernel@vger.kernel.org, linux-ide@vger.kernel.org, Borislav Petkov On Sun, 2008-08-17 at 19:23 +0200, Borislav Petkov wrote: > diff --git a/include/linux/ide.h b/include/linux/ide.h > index c161840..b6d714d 100644 > --- a/include/linux/ide.h > +++ b/include/linux/ide.h > [] > +/* DRV_NAME has to be defined in the driver before using the macro below */ > +#define __ide_debug_log(lvl, fmt, args...) \ > +{ \ > + if (unlikely(drive->debug_mask & lvl)) \ > + printk(KERN_INFO DRV_NAME ": " fmt, ## args); \ > +} Shouldn't a debug printk use KERN_DEBUG?