diff options
author | Jing Peng <pj.hades@gmail.com> | 2022-03-04 17:43:50 -0500 |
---|---|---|
committer | Damjan Marion <dmarion@me.com> | 2022-03-23 18:52:50 +0000 |
commit | 4859d8d8e8a4bbaac0117db827001fae6c9062b9 (patch) | |
tree | a65a02f3e4fd3c3ccc8fab58d464ee946a367272 /src/vat/json_format.c | |
parent | 9deb2ec335925e02c4e98065b374144b9acda11a (diff) |
vlib: send full error message to syslog
Currently the last character of the error message string
is temporarily changed to a null byte '\0' before the string
is sent to syslog(3), resulting in confusingly incomplete log
entries.
This patch changes the syslog format to "%.*s" so that the
maximum number of characters to be printed could be controlled.
Type: improvement
Signed-off-by: Jing Peng <pj.hades@gmail.com>
Change-Id: I1bd6295c19b51b962a3d8ee3016cd91ffb2a4eaf
Diffstat (limited to 'src/vat/json_format.c')
0 files changed, 0 insertions, 0 deletions