lkml.org 
[lkml]   [2005]   [Mar]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] be more verbose in gen-devlist
On Fri, Mar 11, 2005 at 08:28:58PM +0100, Olaf Hering wrote:
>
> gen-devlist should print how many bytes will be cut off and pci.ids
> entry. Also print the removed '[more blah]' part.
>
> Signed-off-by: Olaf Hering <olh@suse.de>
>
> --- ../linux-2.6.10/drivers/pci/gen-devlist.c 2004-12-24 22:34:45.000000000 +0100
> +++ ./drivers/pci/gen-devlist.c 2005-03-11 20:10:11.542098265 +0100
> @@ -72,9 +72,19 @@ main(void)
> /* Too long, try cutting off long description */
> bra = strchr(c, '[');
> if (bra && bra > c && bra[-1] == ' ')
> +#if 0
> + {
> + fprintf(stderr, "Line %d: cut off '%s' from line:\n", lino, bra);
> + fprintf(stderr, " '%s'\n", c);
> bra[-1] = 0;
> + fprintf(stderr, " '%s'\n", c);
> + }
> +#else
> + bra[-1] = 0;
> +#endif

Why #if this? Why not just always do this?

thanks,

greg k-h
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:11    [W:0.056 / U:0.396 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site