Skip to content
Permalink
Browse files

inmates: Add support for %% format

Needed for warning-free output of the "%" character.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
  • Loading branch information...
jan-kiszka committed Sep 30, 2019
1 parent b66f75c commit 4c72146d788461c30269aa29377c51712f6c3c57
Showing with 3 additions and 0 deletions.
  1. +3 −0 inmates/lib/printk.c
@@ -294,6 +294,9 @@ static void __vprintk(const char *fmt, va_list ap)
p = hex2str(v, p, 0);
p = align(p, p0, width, fill);
break;
case '%':
*p++ = c;
break;
default:
*p++ = '%';
*p++ = c;

0 comments on commit 4c72146

Please sign in to comment.
You can’t perform that action at this time.