From: Pavel Machek <pavel@ucw.cz>
To: Danny Kukawka <dkukawka@suse.de>
Cc: linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] ACPI: more verbose thermal zone shutdown message
Date: Sun, 15 Apr 2007 19:11:07 +0000 [thread overview]
Message-ID: <20070415191107.GD10097@ucw.cz> (raw)
In-Reply-To: <200704051615.07960.dkukawka@suse.de>
Hi!
> while debug some strange termal shutdowns I wrote this patch to get more
> information in /var/log/messages about the reason for the shutdown. I
> think this would be useful in general.
>
> Danny
>
> From: Danny Kukawka <dkukawka@suse.de>
> Subject: ACPI: more verbose thermal zone shutdown message
>
> add more information to acpi thermal zone shutdown message for easier
> debugging
>
> Signed-off-by: Danny Kukawka <dkukawka@suse.de>
Yes, please.
(I actually had similar patch in my tree forever).
> if (tz->temperature >= tz->trips.critical.temperature) {
> - printk(KERN_WARNING PREFIX "Critical trip point\n");
> + printk(KERN_WARNING PREFIX
> + "Critical trip point (%ld C) reached on thermal zone [%s]\n",
> + KELVIN_TO_CELSIUS(tz->trips.critical.temperature),
> + acpi_device_bid(tz->device));
> tz->trips.critical.flags.enabled = 1;
> } else if (tz->trips.critical.flags.enabled)
> tz->trips.critical.flags.enabled = 0;
>
> printk(KERN_EMERG
> - "Critical temperature reached (%ld C), shutting down.\n",
> - KELVIN_TO_CELSIUS(tz->temperature));
> + "Critical temperature reached (%ld C on [%s] with trip point set to: %ld C), shutting down.\n",
> + KELVIN_TO_CELSIUS(tz->temperature),
> + acpi_device_bid(tz->device),
> + KELVIN_TO_CELSIUS(tz->trips.critical.temperature));
> +
Why two printks with same info, and why is one of them WARNING and
second EMERG?
Pavel
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
next prev parent reply other threads:[~2007-04-15 19:57 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-04-05 14:15 [PATCH] ACPI: more verbose thermal zone shutdown message Danny Kukawka
2007-04-05 15:12 ` Stefan Seyfried
2007-04-15 19:11 ` Pavel Machek [this message]
2007-04-16 15:58 ` Danny Kukawka
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20070415191107.GD10097@ucw.cz \
--to=pavel@ucw.cz \
--cc=dkukawka@suse.de \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox