diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2013-02-14 16:13:22 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2013-05-07 09:41:07 +1000 |
commit | 58ef34ee6d0f68aa28f6f1a26e56f49ec85ed9bf (patch) | |
tree | 4f6b20d255584ede339998244076c37800accca6 /test | |
parent | 5ea21560dd071ea4ab87430000d087fd5fe1f092 (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 'test')
-rw-r--r-- | test/signal-logging.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/signal-logging.c b/test/signal-logging.c index 9038cf81f..65baa456f 100644 --- a/test/signal-logging.c +++ b/test/signal-logging.c @@ -196,6 +196,11 @@ static void logging_format(void) read_log_msg(logmsg); assert(strcmp(logmsg, "(EE) %s %d %u %% %p %i\n") == 0); + /* literal % */ + LogMessageVerbSigSafe(X_ERROR, -1, "test %%\n"); + read_log_msg(logmsg); + assert(strcmp(logmsg, "(EE) test %\n") == 0); + /* string substitution */ LogMessageVerbSigSafe(X_ERROR, -1, "%s\n", "substituted string"); read_log_msg(logmsg); |