On 2009.07.10 08:53:13 +0800, yakui.z...@intel.com wrote: > From: Zhao Yakui <yakui.z...@intel.com> > > Use the DRM_DEBUG_MODE to add the debug info in generic DRM modes > > Signed-off-by: Zhao Yakui <yakui.z...@intel.com> > --- > drivers/gpu/drm/drm_crtc.c | 36 +++++++++++++------- > drivers/gpu/drm/drm_crtc_helper.c | 65 ++++++++++++++++++++++-------------- > 2 files changed, 63 insertions(+), 38 deletions(-) > > diff --git a/drivers/gpu/drm/drm_crtc.c b/drivers/gpu/drm/drm_crtc.c > index 8fab789..181a9a9 100644 > --- a/drivers/gpu/drm/drm_crtc.c > +++ b/drivers/gpu/drm/drm_crtc.c > @@ -34,6 +34,8 @@ > #include "drmP.h" > #include "drm_crtc.h" > > +#define DRM_CRTC "drm_crtc" > + > struct drm_prop_enum_list { > int type; > char *name; > @@ -1060,7 +1062,8 @@ int drm_mode_getresources(struct drm_device *dev, void > *data, > if (file_priv->master->minor->type == DRM_MINOR_CONTROL) { > list_for_each_entry(crtc, &dev->mode_config.crtc_list, > head) { > - DRM_DEBUG("CRTC ID is %d\n", crtc->base.id); > + DRM_DEBUG_MODE(DRM_CRTC, > + "CRTC ID is %d\n", crtc->base.id); > if (put_user(crtc->base.id, crtc_id + copied)) { > ret = -EFAULT; > goto out;
One thing I found inconvenient for new drm debug functions is I have to decide the prefix thing, but not default 'drm' as before. I'm not sure if the required prefix string is better or not... -- Open Source Technology Center, Intel ltd. $gpg --keyserver wwwkeys.pgp.net --recv-keys 4D781827
signature.asc
Description: Digital signature
------------------------------------------------------------------------------ Enter the BlackBerry Developer Challenge This is your chance to win up to $100,000 in prizes! For a limited time, vendors submitting new applications to BlackBerry App World(TM) will have the opportunity to enter the BlackBerry Developer Challenge. See full prize details at: http://p.sf.net/sfu/Challenge
-- _______________________________________________ Dri-devel mailing list Dri-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dri-devel