diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2013-02-14 16:24:53 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2013-05-07 09:41:11 +1000 |
commit | d9848fb4b182ca21bacf28ed7410d1a502cb000e (patch) | |
tree | 50100cf0cc939a0f9f87af933f3282e061bd1031 /os | |
parent | d903d17d7f006fa333265b8476063b189c20d082 (diff) |
os: complain about unsupported pnprintf directives
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'os')
-rw-r--r-- | os/log.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -461,6 +461,7 @@ pnprintf(char *string, size_t size, const char *f, va_list args) string[s_idx++] = '%'; break; default: + BUG_WARN_MSG(f[f_idx], "Unsupported printf directive '%c'\n", f[f_idx]); va_arg(args, char*); string[s_idx++] = '%'; if (s_idx < size - 1) |