diff options
author | Neels Hofmeyr <neels@hofmeyr.de> | 2017-12-16 00:54:52 +0100 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2017-12-18 23:05:49 +0000 |
commit | 9910bbc62d1c19a2cd75eeb1248c351b6a1e3f06 (patch) | |
tree | 8b6afa6683a92e78cfbdaa9a3adce7d996110df0 /include/osmocom/gsm/sysinfo.h | |
parent | aa84b71f0fe014156e90dde2f0c44694368dc034 (diff) |
utils: add osmo_escape_str()
To report invalid characters in identifiers, it is desirable to escape any
weird characters. Otherwise we might print stray newlines or control characters
in the log output.
ctrl_test.c already uses a print_escaped() function, which will be replaced by
osmo_escape_str() in a subsequent patch.
control_cmd.c will use osmo_escape_str() to log invalid identifiers.
Change-Id: Ic685eb63dead3967d01aaa4f1e9899e5461ca49a
Diffstat (limited to 'include/osmocom/gsm/sysinfo.h')
0 files changed, 0 insertions, 0 deletions