lkml.org 
[lkml]   [2007]   [May]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: 2.6.22-rc2-mm1
    On Thu, 24 May 2007 15:35:45 -0700 (PDT)
    Christoph Lameter <clameter@sgi.com> wrote:

    > > This is pretty-printing. and creature-feep.
    > > But lib/hexdump.c can probably do this if we add a "prefix/tag" string
    > > parameter to it.
    > >
    > > Hugh D. wants it to print 32-bit quantities, not just bytes.
    > > Yet another parameter.
    > >
    > > I'll look into these unless Christoph et al does so first.
    >
    > I'd appreciate if you could do this. I just added a call to the function
    > in hexdump.c and got this ugly output. I think we need
    >
    > 1. byte output

    yup. Obviously a suitable implementation would then permit 1-byte,2-byte,3-byte,etc
    output.

    > 2. A way to specify the width of the description.

    Maybe not. The caller could just ensure that the preamble strings are
    all of the same length:

    hexdump("Bytes ", ...);
    hexdump("Object ", ...);
    hexdump("Redzone ", ...);

    -
    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: 2007-05-25 00:57    [W:2.695 / U:0.892 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site