[Intel-gfx] [PATCH] drm/i915: add plural() helper for logging plurals

Joonas Lahtinen joonas.lahtinen at linux.intel.com
Tue Sep 3 04:59:17 UTC 2019


Quoting Jani Nikula (2019-09-02 21:29:16)
> Add a helper instead of open coding the plurals in debug logs. Also
> fixes the case for "0 display pipes available."
> 
> Signed-off-by: Jani Nikula <jani.nikula at intel.com>
> 
> ---
> 
> I stumbled upon the pipes one while working on ->num_pipes. I honestly
> thought we'd have more users than this, but to my surprise couldn't find
> any. Perhaps this is not worth it after all.

Just a debug string, less hassle with "display pipes available: %d"?

Regards, Joonas


More information about the Intel-gfx mailing list