summaryrefslogtreecommitdiff
path: root/os
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2013-02-14 16:13:22 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2013-05-07 09:41:07 +1000
commit58ef34ee6d0f68aa28f6f1a26e56f49ec85ed9bf (patch)
tree4f6b20d255584ede339998244076c37800accca6 /os
parent5ea21560dd071ea4ab87430000d087fd5fe1f092 (diff)
os: support %% in pnprintf
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.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/os/log.c b/os/log.c
index df025fbca..e4e9e8b9d 100644
--- a/os/log.c
+++ b/os/log.c
@@ -450,6 +450,9 @@ pnprintf(char *string, size_t size, const char *f, va_list args)
string[s_idx++] = number[i];
}
break;
+ case '%':
+ string[s_idx++] = '%';
+ break;
default:
va_arg(args, char*);
string[s_idx++] = '%';