[PATCH] be more verbose in gen-devlist

From: Olaf Hering (olh_at_suse.de)
Date: 03/11/05

  • Next message: Sergey Vlasov: "Re: Last night Linus bk - netfilter busted?"
    Date:	Fri, 11 Mar 2005 20:28:58 +0100
    To: Andrew Morton <akpm@osdl.org>, linux-kernel@vger.kernel.org
    
    

    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;*/
                                                     }
    -
    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/


  • Next message: Sergey Vlasov: "Re: Last night Linus bk - netfilter busted?"

    Relevant Pages

    • Re: Terminal trouble
      ... James Richardson wrote: ... Xdefaults why this behaviour cannot be modified directly in that way, ... and then recompile the entry. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
      (Debian-User)
    • Re: How do I get NFS locking to work?
      ... And the /etc/exports entry on 172.25.1.11 is ... The machine I ran the mtn commit from was 172.25.1.4 (the third entry on ... Debian GNU/Linux Consultant ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
      (Debian-User)
    • Re: Google checking my system?
      ... Of course the entry was dropped when I terminated iceweasel. ... Stumble plugin -- there are additional prefetching options for that ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
      (Debian-User)
    • Re: [2.6 patch] net/ipv6/: misc cleanups
      ... extern const struct in6_addr in6addr_loopback; ... To unsubscribe from this list: send the line "unsubscribe linux-kernel" in ... Please read the FAQ at http://www.tux.org/lkml/ ...
      (Linux-Kernel)
    • [PATCH 3/6] include/linux/a.out.h: use generic round_up_pow2() macro
      ... Use the generic round_up_pow2instead of a custom rounding method. ... To unsubscribe from this list: send the line "unsubscribe linux-kernel" in ... Please read the FAQ at http://www.tux.org/lkml/ ...
      (Linux-Kernel)