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@xxxxxxxxx> Reviewed-by: Damien Lespiau <damien.lespiau@xxxxxxxxx> -- 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@xxxxxxxxxxxxxxxxxxxxx > http://lists.freedesktop.org/mailman/listinfo/intel-gfx _______________________________________________ Intel-gfx mailing list Intel-gfx@xxxxxxxxxxxxxxxxxxxxx http://lists.freedesktop.org/mailman/listinfo/intel-gfx