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:
Andrew Boie 2016-08-29 10:34:03 -07:00
parent 1010927ba9
commit 8af3a1e678
1 changed files with 2 additions and 2 deletions

View File

@ -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);
}