* [PATCH] be more verbose in gen-devlist
@ 2005-03-11 19:28 Olaf Hering
2005-03-12 20:36 ` Greg KH
0 siblings, 1 reply; 5+ messages in thread
From: Olaf Hering @ 2005-03-11 19:28 UTC (permalink / raw)
To: Andrew Morton, linux-kernel; +Cc: linux-pci
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
if (vendor_len + strlen(c) + 1 > MAX_NAME_SIZE) {
- fprintf(stderr, "Line %d: Device name too long. Name truncated.\n", lino);
+ fprintf(stderr, "Line %d: Device name %d chars too long. Name truncated.\n",
+ lino, (vendor_len + strlen(c) + 1) - MAX_NAME_SIZE);
fprintf(stderr, "%s\n", c);
/*return 1;*/
}
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: [PATCH] be more verbose in gen-devlist
2005-03-11 19:28 [PATCH] be more verbose in gen-devlist Olaf Hering
@ 2005-03-12 20:36 ` Greg KH
2005-03-13 8:17 ` Olaf Hering
0 siblings, 1 reply; 5+ messages in thread
From: Greg KH @ 2005-03-12 20:36 UTC (permalink / raw)
To: Olaf Hering; +Cc: Andrew Morton, linux-kernel, linux-pci
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
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: [PATCH] be more verbose in gen-devlist
2005-03-12 20:36 ` Greg KH
@ 2005-03-13 8:17 ` Olaf Hering
2005-03-13 8:27 ` Greg KH
0 siblings, 1 reply; 5+ messages in thread
From: Olaf Hering @ 2005-03-13 8:17 UTC (permalink / raw)
To: Greg KH; +Cc: Andrew Morton, linux-kernel, linux-pci
On Sat, Mar 12, Greg KH wrote:
> Why #if this? Why not just always do this?
Because it always triggers with current sf.net snapshot.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] be more verbose in gen-devlist
2005-03-13 8:17 ` Olaf Hering
@ 2005-03-13 8:27 ` Greg KH
2005-03-13 8:33 ` Olaf Hering
0 siblings, 1 reply; 5+ messages in thread
From: Greg KH @ 2005-03-13 8:27 UTC (permalink / raw)
To: Olaf Hering; +Cc: Andrew Morton, linux-kernel, linux-pci
On Sun, Mar 13, 2005 at 09:17:09AM +0100, Olaf Hering wrote:
> On Sat, Mar 12, Greg KH wrote:
>
> > Why #if this? Why not just always do this?
>
> Because it always triggers with current sf.net snapshot.
Someone said they were going to submit those shorter strings that the
kernel has, back to sf.net. Guess that didn't happen yet, and is the
main reason I can't just sync up all the time with that repository.
Oh well, we'll be dropping support for the pci.ids file by the end of
the year or so, so it's not that big of a deal.
thanks,
greg k-h
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] be more verbose in gen-devlist
2005-03-13 8:27 ` Greg KH
@ 2005-03-13 8:33 ` Olaf Hering
0 siblings, 0 replies; 5+ messages in thread
From: Olaf Hering @ 2005-03-13 8:33 UTC (permalink / raw)
To: Greg KH; +Cc: Andrew Morton, linux-kernel, linux-pci
On Sun, Mar 13, Greg KH wrote:
> On Sun, Mar 13, 2005 at 09:17:09AM +0100, Olaf Hering wrote:
> > On Sat, Mar 12, Greg KH wrote:
> >
> > > Why #if this? Why not just always do this?
> >
> > Because it always triggers with current sf.net snapshot.
>
> Someone said they were going to submit those shorter strings that the
> kernel has, back to sf.net. Guess that didn't happen yet, and is the
> main reason I can't just sync up all the time with that repository.
I did update the database a few days ago.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2005-03-13 8:33 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-11 19:28 [PATCH] be more verbose in gen-devlist Olaf Hering
2005-03-12 20:36 ` Greg KH
2005-03-13 8:17 ` Olaf Hering
2005-03-13 8:27 ` Greg KH
2005-03-13 8:33 ` Olaf Hering
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox