[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <5609150.OAJVFt04xE@vostro.rjw.lan>
Date: Tue, 09 Jun 2015 01:35:24 +0200
From: "Rafael J. Wysocki" <rjw@...ysocki.net>
To: Joe Perches <joe@...ches.com>
Cc: linux-pm@...r.kernel.org, Len Brown <len.brown@...el.com>,
Pavel Machek <pavel@....cz>, linux-kernel@...r.kernel.org
Subject: Re: [PATCH 1/6] power: hibernate: Use separate messages for "Syncing filesystems"
On Thursday, June 04, 2015 11:36:44 AM Joe Perches wrote:
> Add the ability to see how long it takes to sync the filesystems
> via the printk time mechanism.
>
> Start to standardize the printk "PM: doing something...done"
> messages on two separate lines.
Well, it would be good to say what problem this is attempting to fix.
And while I understand the underlying concern, there is a merit in keeping
each of these messages in one line (if everything goes well), so I'm wondering
what about printing each of them in one go after the operation with a tail
depending on the result? Like
printk(KERN_INFO "PM: Syncing filesystems ... done\n");
on success or
printk(KERN_INFO "PM: Syncing filesystems ... failed\n");
on failure?
> Signed-off-by: Joe Perches <joe@...ches.com>
> ---
> kernel/power/hibernate.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/kernel/power/hibernate.c b/kernel/power/hibernate.c
> index 2329daa..2466d78 100644
> --- a/kernel/power/hibernate.c
> +++ b/kernel/power/hibernate.c
> @@ -663,9 +663,9 @@ int hibernate(void)
> if (error)
> goto Exit;
>
> - printk(KERN_INFO "PM: Syncing filesystems ... ");
> + printk(KERN_INFO "PM: Syncing filesystems ...\n");
> sys_sync();
> - printk("done.\n");
> + printk(KERN_INFO "PM: Syncing filesystems: done\n");
>
> error = freeze_processes();
> if (error)
>
--
I speak only for myself.
Rafael J. Wysocki, Intel Open Source Technology Center.
--
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