From 85b17e9158af6e4a419d57099fe3752295451aa5 Mon Sep 17 00:00:00 2001 From: Bernard Xiong Date: Wed, 1 Nov 2017 13:38:10 +0800 Subject: [PATCH] [logtrace] change the type of cmd to 'int' --- components/utilities/logtrace/log_trace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/utilities/logtrace/log_trace.c b/components/utilities/logtrace/log_trace.c index 1da3f70b0..aa2e71985 100644 --- a/components/utilities/logtrace/log_trace.c +++ b/components/utilities/logtrace/log_trace.c @@ -361,7 +361,7 @@ static rt_size_t _log_write(rt_device_t dev, rt_off_t pos, const void *buffer, r return size; } -static rt_err_t _log_control(rt_device_t dev, rt_uint8_t cmd, void *arg) +static rt_err_t _log_control(rt_device_t dev, int cmd, void *arg) { if (_traceout_device == RT_NULL) return -RT_ERROR;