[lkml]   [2006]   [Sep]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: Tiny error in printk output for clocksource : a3:<6>Time: acpi_pm clocksource has been installed.
    On Thu, 2006-09-28 at 12:56 +0200, Denis Vlasenko wrote:
    > \#define MACSTR "%02X:%02X:%02X:%02X:%02X:%02X"
    > #define MAC(bytevector) \
    > ((unsigned char *)bytevector)[0], \
    > ((unsigned char *)bytevector)[1], \
    > ((unsigned char *)bytevector)[2], \
    > ((unsigned char *)bytevector)[3], \
    > ((unsigned char *)bytevector)[4], \
    > ((unsigned char *)bytevector)[5]

    This is similar to the 802.11 way.
    802.11 uses MAC_FMT and MAC_ARG.
    I think a common style is preferable.

    It's fine, but it increases the size of kernel image
    by up to ~100K. Using a common function, a stack
    automatic and "%s" in the printk decreases the size
    of the kernel.

    Strictly, not all MAC addresses are 6 byte.

    Maybe all the Ethernet/TR addresses should use the
    IEEE EUI48 designation? That feels a bit like the
    KiB/KB distinction, but it is technically correct.

    Would a patch with an DEV6_ADDR->EUI48 substitution
    be acceptable?

    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-09-28 18:13    [W:0.019 / U:8.356 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site