From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Vetter Subject: Re: [PATCH] drm/i915: shorten debugfs output simple attributes Date: Tue, 16 Apr 2013 09:33:07 +0200 Message-ID: <20130416073307.GD27612@phenom.ffwll.local> References: <1365686532-6682-1-git-send-email-mika.kuoppala@intel.com> <1365757805-1097-1-git-send-email-mika.kuoppala@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-ee0-f53.google.com (mail-ee0-f53.google.com [74.125.83.53]) by gabe.freedesktop.org (Postfix) with ESMTP id 90E1CE6362 for ; Tue, 16 Apr 2013 00:30:06 -0700 (PDT) Received: by mail-ee0-f53.google.com with SMTP id c13so82517eek.40 for ; Tue, 16 Apr 2013 00:30:05 -0700 (PDT) Content-Disposition: inline In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org Errors-To: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org To: Kees Cook Cc: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org On Fri, Apr 12, 2013 at 11:00:20AM -0700, Kees Cook wrote: > On Fri, Apr 12, 2013 at 2:10 AM, Mika Kuoppala > wrote: > > commit 647416f9eefe7699754b01b9fc82758fde83248c > > Author: Kees Cook > > Date: Sun Mar 10 14:10:06 2013 -0700 > > > > drm/i915: use simple attribute in debugfs routines > > > > made i915_next_seqno debugfs entry to crop it's output > > if returned value was large enough. Using simple_attr > > will limit the output to 24 bytes. > > > > Fix is to strip out preamples on all simple attributes > > that have one. > > > > v2: Fix all simple attributes (Daniel Vetter) > > > > Cc: Kees Cook > > Signed-off-by: Mika Kuoppala > > Acked-by: Kees Cook Queued for -next, thanks for the patch. -Daniel -- Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch