[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <cone.1244015521.698111.16292.1000@arca>
Date: Wed, 03 Jun 2009 09:52:01 +0200
From: Peter Feuerer <peter@...e.net>
To: Borislav Petkov <petkovbb@...glemail.com>
Cc: LKML <linux-kernel@...r.kernel.org>, lenb@...nel.org,
Matthew Garrett <mjg59@...f.ucam.org>,
Maxim Levitsky <maximlevitsky@...il.com>
Subject: Re: [PATCH] Acer Aspire One Fan Control
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@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists