lkml.org 
[lkml]   [2009]   [Sep]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH 6/9] drivers/media/video/uvc: Use %pUr to print UUIDs
From
Date
On Thu, 2009-10-01 at 02:20 +0200, Laurent Pinchart wrote:
> > flags = info->flags;
> > if (((flags & UVC_CONTROL_GET_CUR) && !(inf & (1 << 0))) ||
> > ((flags & UVC_CONTROL_SET_CUR) && !(inf & (1 << 1)))) {
> > - uvc_trace(UVC_TRACE_CONTROL, "Control "
> > - UVC_GUID_FORMAT "/%u flags don't match "
> > - "supported operations.\n",
> > - UVC_GUID_ARGS(info->entity), info->selector);
> > + uvc_trace(UVC_TRACE_CONTROL,
> > + "Control %pUr/%u flags don't match supported operations.\n",
> > + info->entity, info->selector);
>
> This doesn't fit the 80 columns limit. Please run checkpatch.pl on your patches.

Intentional. Strings shouldn't be broken across lines unnecessarily.

> > snprintf(format->name, sizeof format->name,
> > - UVC_GUID_FORMAT, UVC_GUID_ARGS(&buffer[5]));
> > + "%pUr", &Buffer[5]);
>
> Should be &buffer[5], not &Buffer[5]. You haven't compiled the patch, have
> you ? :-)

Unintentional. Did compile allyesconfig.

cheers, Joe




\
 
 \ /
  Last update: 2009-10-01 02:27    [W:0.046 / U:1.376 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site