diff options
author | Saya Sugiura <ssugiura@jp.adit-jv.com> | 2019-05-29 17:58:37 +0900 |
---|---|---|
committer | Saya Sugiura <ssugiura@jp.adit-jv.com> | 2019-06-19 11:00:37 +0900 |
commit | 9cf8c10a22542ce784c383d7e371797c4b9910ac (patch) | |
tree | b43fb9e5692e8354dc203fc382c3263d7876ad40 /include | |
parent | 6088448cdfe3cd152c53136544acc4ee7a508a84 (diff) | |
download | DLT-daemon-9cf8c10a22542ce784c383d7e371797c4b9910ac.tar.gz |
cleanup: Use dlt_vlog()
There were a couple of places which used snprintf-dlt_log. It is
now replaced with dlt_vlog().
Signed-off-by: Saya Sugiura <ssugiura@jp.adit-jv.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/dlt/dlt_common.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/include/dlt/dlt_common.h b/include/dlt/dlt_common.h index a82d5fd..acc1135 100644 --- a/include/dlt/dlt_common.h +++ b/include/dlt/dlt_common.h @@ -244,12 +244,9 @@ enum { # define PRINT_FUNCTION_VERBOSE(_verbose) \ { \ - static char _strbuf[255]; \ - \ if (_verbose) \ { \ - snprintf(_strbuf, 255, "%s()\n", __func__); \ - dlt_log(LOG_INFO, _strbuf); \ + dlt_vlog(LOG_INFO, "%s()\n", __func__); \ } \ } |