Re: [PATCH] drivers:staging: sources for ST core

From: Joe Perches
Date: Tue Mar 30 2010 - 22:24:23 EST


On Wed, 31 Mar 2010, Pavan Savoy wrote:
> +bool is_protocol_list_empty(void)
> +{
> + unsigned char i = 0;
> + pr_debug(" %s ", __func__);

You need to add terminating '\n's to most all these messages.
It's also not necessary to have leading or trailing whitespace.

> +#ifdef VERBOSE
> + printk(KERN_ERR "start data..\n");
> + for (i = 0; i < count; i++) /* no newlines for each datum */
> + printk(" %x", data[i]);
> + printk(KERN_ERR "\n ..end data\n");
> +#endif

print_hex_dump(KERN_ERR, "data: ", DUMP_PREFIX_OFFSET, 16, 1,
data, count, true);

cheers, Joe

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/