All of lore.kernel.org
 help / color / mirror / Atom feed
From: Chris Wilson <chris@chris-wilson.co.uk>
Cc: dri-devel@lists.freedesktop.org
Subject: Re: [PATCH] drm: Pretty print out the reason for rejecting the mode
Date: Tue, 05 Apr 2011 22:32:14 +0100	[thread overview]
Message-ID: <b7da2f$r00c33@fmsmga001.fm.intel.com> (raw)
In-Reply-To: <BANLkTinHLQFYLcL99Cfid1pce=f5YLJw7Q@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1583 bytes --]

On Tue, 5 Apr 2011 23:06:19 +0200, Marcin Åšlusarz <marcin.slusarz@gmail.com> wrote:
> 2011/4/5 Chris Wilson <chris@chris-wilson.co.uk>:
> > Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
> > ---
> >  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

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

  reply	other threads:[~2011-04-05 21:32 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-05 20:50 [PATCH] drm: Pretty print out the reason for rejecting the mode Chris Wilson
2011-04-05 21:06 ` Marcin Ślusarz
2011-04-05 21:32   ` Chris Wilson [this message]
2011-04-06 14:10   ` Henri Verbeet
2011-04-05 21:39 ` Julien Cristau
2011-04-05 21:41   ` Chris Wilson
2011-04-06 14:32     ` Alex Deucher

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='b7da2f$r00c33@fmsmga001.fm.intel.com' \
    --to=chris@chris-wilson.co.uk \
    --cc=dri-devel@lists.freedesktop.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.