Hi guys,

[EMAIL PROTECTED] ([EMAIL PROTECTED]) wrote:
> Author: juhosg
> Date: 2007-06-22 12:16:47 +0200 (Fri, 22 Jun 2007)
> New Revision: 7708
> 
> +void __init adm5120_swab_test(void)
> +{
> +#if CONFIG_ADM5120_HARDWARE_SWAB
> +     u32     t1,t2;
> +
> +     t1 = 0x1234;
> +     t2 = swab16(t1);
> +     printk("hardware swab16 test %s, data:0x%04X, result:0x%04X\n",
> +             (t2 == 0x3412) ? "passed" :"failed", t1, t2);
> +
> +     t1 = 0x12345678;
> +     t2 = swab32(t1);
> +     printk("hardware swab32 test %s, data:0x%08X, result:0x%08X\n",
> +             (t2 == 0x78563412) ? "passed" :"failed", t1, t2);
> +
> +#endif /* CONFIG_ADM5120_HARDWARE_SWAB */
> +}
> +

Sorry to be a pain, but is it not better to use KERN_* ?
Just to be kind with kernel-janitors guys ;-)

Regards,


        - Christophe -
_______________________________________________
openwrt-devel mailing list
[email protected]
http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to