Re: Kernel printk format string compression: C syntax problem

From: Timothy Miller (miller@techsource.com)
Date: Fri Jun 06 2003 - 13:50:59 EST


Bryan O'Sullivan wrote:

>
>
> No. Look at the __attribute__ on printk in include/linux/kernel.h. GCC
> believes that printk takes a printf-style format string as its first
> argument, but you've mangled the string so that the number of format
> specifiers doesn't match the number of arguments.
>

Oh! So GCC is trying to be smart about printf format strings? Cool.
Never mind then. :)

-
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/



This archive was generated by hypermail 2b29 : Sat Jun 07 2003 - 22:00:31 EST