Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756536AbZFCH6F (ORCPT ); Wed, 3 Jun 2009 03:58:05 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755258AbZFCH54 (ORCPT ); Wed, 3 Jun 2009 03:57:56 -0400 Received: from smtprelay01.ispgateway.de ([80.67.31.35]:54939 "EHLO smtprelay01.ispgateway.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754917AbZFCH54 (ORCPT ); Wed, 3 Jun 2009 03:57:56 -0400 References: <1240950704.3781.12.camel@maxim-laptop> <20090503184617.GA3555@liondog.tnic> <20090509171432.GA31126@liondog.tnic> <20090512060231.GB26286@liondog.tnic> <20090524192219.GA30285@liondog.tnic> <20090603073939.GB2671@liondog.tnic> Message-ID: X-Mailer: http://www.courier-mta.org/cone/ From: Peter Feuerer To: Borislav Petkov Cc: LKML , lenb@kernel.org, Matthew Garrett , Maxim Levitsky Subject: Re: [PATCH] Acer Aspire One Fan Control Date: Wed, 03 Jun 2009 09:52:01 +0200 Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset="US-ASCII" Content-Disposition: inline Content-Transfer-Encoding: 7bit X-Df-Sender: 404094 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 709 Lines: 22 Hi Boris, Borislav Petkov writes: >> + >> +#define pr_fmt(fmt) "acerhdf: " fmt > > This is new but it's not used anywhere. Maybe some debug leftovers? This is the way Joe suggested, how to use printk's: You define the pr_fmt(fmt) before any includes and you can just do 'pr_notice("Fan control off, to enable:\n");' to printk a notice which looks like this: "acerhdf: Fan control off...". Same with pr_err(...) which prints an error. kind regards, --peter -- 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/