public inbox for intel-gfx@lists.freedesktop.org
 help / color / mirror / Atom feed
From: Damien Lespiau <damien.lespiau@intel.com>
To: Jani Nikula <jani.nikula@intel.com>
Cc: intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH] drm/i915/dp: make link rate printing prettier
Date: Mon, 18 May 2015 14:10:37 +0100	[thread overview]
Message-ID: <20150518131037.GA25892@strange.ger.corp.intel.com> (raw)
In-Reply-To: <1431954105-24729-1-git-send-email-jani.nikula@intel.com>

On Mon, May 18, 2015 at 04:01:45PM +0300, Jani Nikula wrote:
> Turn
> 
>     [drm:intel_dp_print_rates] source rates: 162000,270000,540000,
>     [drm:intel_dp_print_rates] sink rates: 162000,270000,
>     [drm:intel_dp_print_rates] common rates: 162000,270000,
> 
> into
> 
>     [drm:intel_dp_print_rates] source rates: 162000, 270000, 540000
>     [drm:intel_dp_print_rates] sink rates: 162000, 270000
>     [drm:intel_dp_print_rates] common rates: 162000, 270000
> 
> Signed-off-by: Jani Nikula <jani.nikula@intel.com>

Reviewed-by: Damien Lespiau <damien.lespiau@intel.com>

-- 
Damien

> ---
>  drivers/gpu/drm/i915/intel_dp.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/gpu/drm/i915/intel_dp.c b/drivers/gpu/drm/i915/intel_dp.c
> index f99cca80867c..6e9f14ef2d2d 100644
> --- a/drivers/gpu/drm/i915/intel_dp.c
> +++ b/drivers/gpu/drm/i915/intel_dp.c
> @@ -1269,7 +1269,7 @@ static void snprintf_int_array(char *str, size_t len,
>  	str[0] = '\0';
>  
>  	for (i = 0; i < nelem; i++) {
> -		int r = snprintf(str, len, "%d,", array[i]);
> +		int r = snprintf(str, len, "%s%d", i ? ", " : "", array[i]);
>  		if (r >= len)
>  			return;
>  		str += r;
> -- 
> 2.1.4
> 
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/intel-gfx
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

  reply	other threads:[~2015-05-18 13:10 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-18 13:01 [PATCH] drm/i915/dp: make link rate printing prettier Jani Nikula
2015-05-18 13:10 ` Damien Lespiau [this message]
2015-05-19  9:52 ` David Weinehall
2015-05-20  6:56   ` Jani Nikula
2015-05-19 15:30 ` shuang.he

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=20150518131037.GA25892@strange.ger.corp.intel.com \
    --to=damien.lespiau@intel.com \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=jani.nikula@intel.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox