Re: [PATCH] (10/11) netrom - convert /proc interface to seq_file

From: Stephen Hemminger (pgb.qaoathslbp@allstream.net)
Date: Thu Aug 14 2003 - 21:30:25 EEST

  • Next message: David S. Miller: "Re: [PATCH] (2/2) Convert yam driver to seq_file"

    On Thu, 14 Aug 2003 14:25:39 -0300
    Arnaldo Carvalho de Melo <iefir@21st.com> wrote:

    > Em Wed, Aug 13, 2003 at 03:46:35PM -0700, Stephen Hemminger escreveu:
    > > Convert netrom /proc interface to seq_file.
    > >
    > > diff -Nru a/include/net/netrom.h b/include/net/netrom.h
    > > --- a/include/net/netrom.h Wed Aug 13 13:54:19 2003
    > > +++ b/include/net/netrom.h Wed Aug 13 13:54:19 2003
    > > + seq_printf(seq, "%-9s ", ax2asc(&nr->user_addr));
    > > + seq_printf(seq, "%-9s ", ax2asc(&nr->dest_addr));
    > > + seq_printf(seq,
    > > +"%-9s %-3s %02X/%02X %02X/%02X %2d %3d %3d %3d %3lu/%03lu %2lu/%02lu %3lu/%03lu %3lu/%03lu %2d/%02d %3d %5d %5d %ld\n",
    >
    > <nitpick> why not just one seq_printf call? </nitpick>

    ax2asc() returns a pointer to static buffer.
    -
    To unsubscribe from this list: send the line "unsubscribe linux-hams" in
    the body of a message to bfctbbqf@ht-defta.dk
    More majordomo info at http://vger.kernel.org/majordomo-info.html



    This archive was generated by hypermail 2b30 : Thu Aug 14 2003 - 21:31:06 EEST