From 9cf8c10a22542ce784c383d7e371797c4b9910ac Mon Sep 17 00:00:00 2001 From: Saya Sugiura Date: Wed, 29 May 2019 17:58:37 +0900 Subject: 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 --- include/dlt/dlt_common.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'include') 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__); \ } \ } -- cgit v1.2.1