summaryrefslogtreecommitdiff
path: root/os
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2013-02-14 16:24:53 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2013-05-07 09:41:11 +1000
commitd9848fb4b182ca21bacf28ed7410d1a502cb000e (patch)
tree50100cf0cc939a0f9f87af933f3282e061bd1031 /os
parentd903d17d7f006fa333265b8476063b189c20d082 (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.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/os/log.c b/os/log.c
index 9f95743b5..3dc675f5c 100644
--- a/os/log.c
+++ b/os/log.c
@@ -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)