[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Y3HqauaLfF6iJTGJ@kroah.com>
Date: Mon, 14 Nov 2022 08:12:42 +0100
From: Greg KH <gregkh@...uxfoundation.org>
To: Mario Limonciello <mario.limonciello@....com>
Cc: Sven van Ashbrook <svenva@...omium.org>,
Rafael J Wysocki <rafael@...nel.org>,
linux-pm@...r.kernel.org, platform-driver-x86@...r.kernel.org,
Pavel Machek <pavel@....cz>, Len Brown <len.brown@...el.com>,
John Stultz <jstultz@...gle.com>,
Thomas Gleixner <tglx@...utronix.de>,
Stephen Boyd <sboyd@...nel.org>,
Rajneesh Bhardwaj <irenic.rajneesh@...il.com>,
S-k Shyam-sundar <Shyam-sundar.S-k@....com>,
rrangel@...omium.org, Rajat Jain <rajatja@...gle.com>,
David E Box <david.e.box@...el.com>,
Hans de Goede <hdegoede@...hat.com>,
linux-kernel@...r.kernel.org
Subject: Re: [RFC v2 1/3] PM: Add a sysfs files to represent sleep duration
On Thu, Nov 10, 2022 at 12:47:21AM -0600, Mario Limonciello wrote:
> +static ssize_t last_hw_state_residency_show(struct kobject *kobj,
> + struct kobj_attribute *attr, char *buf)
> +{
> + return sprintf(buf, "%llu\n", suspend_stats.last_hw_state_residency);
sysfs_emit() please for sysfs files, not a "raw" sprintf().
checkpatch.pl should have caught that for you, but sometimes it doesn't.
thanks,
greg k-h
Powered by blists - more mailing lists