printk: warn on incorrect format code usage
Change-Id: I3efba096d3b1b5c2b39c335351d7a0228d20d1b0 Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
This commit is contained in:
parent
1010927ba9
commit
8af3a1e678
|
@ -49,9 +49,9 @@ extern "C" {
|
|||
* @return N/A
|
||||
*/
|
||||
#ifdef CONFIG_PRINTK
|
||||
extern void printk(const char *fmt, ...);
|
||||
extern __printf_like(1, 2) void printk(const char *fmt, ...);
|
||||
#else
|
||||
static inline void printk(const char *fmt, ...)
|
||||
static inline __printf_like(1, 2) void printk(const char *fmt, ...)
|
||||
{
|
||||
ARG_UNUSED(fmt);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue