[lkml]   [2006]   [Aug]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [PATCH 2/9] sector_t format string
    Hash: SHA1

    Jan Engelhardt wrote:
    >>> Will
    >>> printk("%S", sector_t);
    >>> kill at least one kitten?
    >> I like the general idea. I think that having to cast every time you want
    >> to print a sector number is pretty gross. I had something more like %Su
    >> in mind, though.
    > What will happen if you run out of %[a-z] ?

    Are we really expecting that many global structure members to be
    variable width? I only propose adding another option because whenever a
    sector is printed, it must be casted to avoid warnings.

    Other replies commented on how gcc won't recognize the new option, so
    we'd receive warnings anyway. Cleaner code that causes warnings doesn't
    sound like a big win after all.

    - -Jeff

    - --
    Jeff Mahoney
    SUSE Labs
    Version: GnuPG v1.4.2 (GNU/Linux)
    Comment: Using GnuPG with SUSE -

    -----END PGP SIGNATURE-----
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2006-08-11 16:47    [W:0.047 / U:3.324 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site