From d903d17d7f006fa333265b8476063b189c20d082 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Thu, 14 Feb 2013 16:19:34 +1000 Subject: os: support %c in pnprintf Signed-off-by: Peter Hutterer Reviewed-by: Keith Packard --- test/signal-logging.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'test') 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); -- cgit v1.2.3