limiter: fix internal priority mapping 08/193908/1
authorMichal Bloch <m.bloch@samsung.com>
Tue, 27 Nov 2018 10:11:23 +0000 (11:11 +0100)
committerMichal Bloch <m.bloch@samsung.com>
Tue, 27 Nov 2018 10:26:36 +0000 (11:26 +0100)
commit11c86b23ba1fe49d5440d9a4397231bb5fe89ccd
treecaef205627deb210071b112fe046f147e6c83b14
parente736cd5d8516050dd81b5919305f242d819ae94d
limiter: fix internal priority mapping

Now makes sure the result is one of the chars "?*VDIWEFS".

Previously it could return lowercase characters, numerical
characters (except '8' which stands for SILENT but including
'1' which stands for DEFAULT which is not a real priority),
or the null character (when passed the integers 0 or 1).

Change-Id: I3766d699e553d71265a979ababe59fccdd16d571
Signed-off-by: Michal Bloch <m.bloch@samsung.com>
src/libdlog/loglimiter.c