summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2013-02-14 16:19:34 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2013-05-14 16:37:30 +1000
commit7eb73779a0c82386710c4b670a342c0340485d19 (patch)
tree5005673843b63c30cb39e466148b97788ac6df74 /test
parent6da756fb1d67d6de99077826a3d2434b0e3a1555 (diff)
os: support %c in pnprintf
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Keith Packard <keithp@keithp.com> (cherry picked from commit d903d17d7f006fa333265b8476063b189c20d082)
Diffstat (limited to 'test')
-rw-r--r--test/signal-logging.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/signal-logging.c b/test/signal-logging.c
index 65baa456f..b45d8d4f3 100644
--- a/test/signal-logging.c
+++ b/test/signal-logging.c
@@ -201,6 +201,11 @@ static void logging_format(void)
read_log_msg(logmsg);
assert(strcmp(logmsg, "(EE) test %\n") == 0);
+ /* character */
+ LogMessageVerbSigSafe(X_ERROR, -1, "test %c\n", 'a');
+ read_log_msg(logmsg);
+ assert(strcmp(logmsg, "(EE) test a\n") == 0);
+
/* string substitution */
LogMessageVerbSigSafe(X_ERROR, -1, "%s\n", "substituted string");
read_log_msg(logmsg);