On Mon, 23 Dec 2019, Sam Ravnborg wrote:
> Hi Jani.
>
> On Mon, Dec 23, 2019 at 01:29:19PM +0200, Jani Nikula wrote:
>> On Sat, 21 Dec 2019, Sam Ravnborg wrote:
>> > There are a lot of cases where we have a device * but no drm_device *.
>> > Add drm_dev_* variants of the logging functions to cove
Hi Jani.
On Mon, Dec 23, 2019 at 01:29:19PM +0200, Jani Nikula wrote:
> On Sat, 21 Dec 2019, Sam Ravnborg wrote:
> > There are a lot of cases where we have a device * but no drm_device *.
> > Add drm_dev_* variants of the logging functions to cover these cases.
>
> So I know there are some valid
On Sat, 21 Dec 2019, Sam Ravnborg wrote:
> There are a lot of cases where we have a device * but no drm_device *.
> Add drm_dev_* variants of the logging functions to cover these cases.
So I know there are some valid cases where we only have struct device *,
and instead of passing struct drm_devi
On Sat, 21 Dec 2019, Sam Ravnborg wrote:
> Hi Joe.
>
>> > +#define __drm_dev_cat_printk(dev, cat, type, fmt, ...)
>> > \
>> > +({
>> > \
>> > + if (drm_debug_enabled(cat))
Hi Joe.
> > +#define __drm_dev_cat_printk(dev, cat, type, fmt, ...)
> > \
> > +({ \
> > + if (drm_debug_enabled(cat)) \
> > + dev_dbg##type((dev), "[drm] " fmt, ##__
On Sat, 2019-12-21 at 10:55 +0100, Sam Ravnborg wrote:
> There are a lot of cases where we have a device * but no drm_device *.
> Add drm_dev_* variants of the logging functions to cover these cases.
[]
> diff --git a/include/drm/drm_print.h b/include/drm/drm_print.h
[]
> @@ -468,6 +511,60 @@ stati
There are a lot of cases where we have a device * but no drm_device *.
Add drm_dev_* variants of the logging functions to cover these cases.
Include brief documentation.
Signed-off-by: Sam Ravnborg
Cc: Jani Nikula
Cc: Sean Paul
Cc: Daniel Vetter
---
include/drm/drm_print.h | 99 +