Re: [PATCH] drm: Pretty print out the reason for rejecting the mode

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 5 Apr 2011 23:06:19 +0200, Marcin Å?lusarz <marcin.slusarz@xxxxxxxxx> wrote:
> 2011/4/5 Chris Wilson <chris@xxxxxxxxxxxxxxxxxx>:
> > Signed-off-by: Chris Wilson <chris@xxxxxxxxxxxxxxxxxx>
> > ---
> >  drivers/gpu/drm/drm_modes.c |   52 +++++++++++++++++++++++++++++++++++++++++-
> >  1 files changed, 50 insertions(+), 2 deletions(-)
> >
> > diff --git a/drivers/gpu/drm/drm_modes.c b/drivers/gpu/drm/drm_modes.c
> > index 25bf873..b3e07ac 100644
> > --- a/drivers/gpu/drm/drm_modes.c
> > +++ b/drivers/gpu/drm/drm_modes.c
> > @@ -853,6 +853,52 @@ void drm_mode_validate_clocks(struct drm_device *dev,
> >  }
> >  EXPORT_SYMBOL(drm_mode_validate_clocks);
> >
> > +static const char *mode_status_to_string(enum drm_mode_status status)
> > +{
> > +       const char *strings[] = {
> 
> + static?

Yes, it should be. I wonder if the compiler is smart enough (smarter than
me) for that to make no difference in this case...

> > +               [MODE_OK] = "OK",
> > +               [MODE_HSYNC] = "hsync out of range",
> > +               [MODE_VSYNC] = "vsync out of range",
> > +               [MODE_H_ILLEGAL] = "illegal horizontal timings",
> > +               [MODE_V_ILLEGAL] = "illegal vertical timings",
> > +               [MODE_BAD_WIDTH] = "requires an unsupported linepitch",
> > +               [MODE_NOMODE] = "no mode with a maching name",
> 
> s/maching/matching/

Cut'n'paste typo. Another patch for include/drm/drm_crtc.h required!

Thanks,
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre
_______________________________________________
dri-devel mailing list
dri-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/dri-devel

[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux