Re: [PATCH v3 1/4] include/linux/suspend.h: Only show pm_pr_dbg messages at suspend/resume

From: andy . shevchenko
Date: Thu Jun 01 2023 - 22:00:00 EST


Thu, Jun 01, 2023 at 06:29:20PM -0500, Mario Limonciello kirjoitti:
> All uses in the kernel are currently already oriented around
> suspend/resume. As some other parts of the kernel may also use these
> messages in functions that could also be used outside of
> suspend/resume, only enable in suspend/resume path.

...

> * Remove pointless do/while

I believe this is a joke.

This guards against weirdness, like

__pm_pr_dbg(foo)
else
bar;

NAK for this particular change.

--
With Best Regards,
Andy Shevchenko