summaryrefslogtreecommitdiff
path: root/src/daemon/dlt_daemon_client.c
diff options
context:
space:
mode:
authorSaya Sugiura <39760799+ssugiura@users.noreply.github.com>2019-09-02 14:32:09 +0900
committerGitHub <noreply@github.com>2019-09-02 14:32:09 +0900
commit716ecb8e223f1c89ca2a6200091ad15febb09144 (patch)
tree3b3edfae3946b535277a2d2499a1e3c2d8b41484 /src/daemon/dlt_daemon_client.c
parent2ac98deee151aa56de5025dac8f5d2230095bda7 (diff)
downloadDLT-daemon-716ecb8e223f1c89ca2a6200091ad15febb09144.tar.gz
protocol: Remove non supported user service ID (#159)
With this commit, following DLT user service IDs are now free to use: - 0xF0A - 0xF0F to 0xFFE Also the cases in dlt_daemon_client_process_control() is reordered so that it matches the order of dlt_user_services enum. Signed-off-by: Saya Sugiura <ssugiura@jp.adit-jv.com>
Diffstat (limited to 'src/daemon/dlt_daemon_client.c')
-rw-r--r--src/daemon/dlt_daemon_client.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/daemon/dlt_daemon_client.c b/src/daemon/dlt_daemon_client.c
index 5fe0215..324f6b1 100644
--- a/src/daemon/dlt_daemon_client.c
+++ b/src/daemon/dlt_daemon_client.c
@@ -453,7 +453,7 @@ int dlt_daemon_client_process_control(int sock,
id_tmp = *((uint32_t *)(msg->databuffer));
id = DLT_ENDIAN_GET_32(msg->standardheader->htyp, id_tmp);
- if ((id > 0) && (id < DLT_SERVICE_ID_CALLSW_CINJECTION)) {
+ if ((id > DLT_SERVICE_ID) && (id < DLT_SERVICE_ID_CALLSW_CINJECTION)) {
/* Control message handling */
switch (id) {
case DLT_SERVICE_ID_SET_LOG_LEVEL:
@@ -631,16 +631,6 @@ int dlt_daemon_client_process_control(int sock,
verbose);
break;
}
- case DLT_SERVICE_ID_SET_ALL_LOG_LEVEL:
- {
- dlt_daemon_control_set_all_log_level(sock, daemon, daemon_local, msg, verbose);
- break;
- }
- case DLT_SERVICE_ID_SET_ALL_TRACE_STATUS:
- {
- dlt_daemon_control_set_all_trace_status(sock, daemon, daemon_local, msg, verbose);
- break;
- }
case DLT_SERVICE_ID_OFFLINE_LOGSTORAGE:
{
dlt_daemon_control_service_logstorage(sock, daemon, daemon_local, msg, verbose);
@@ -663,6 +653,16 @@ int dlt_daemon_client_process_control(int sock,
verbose);
break;
}
+ case DLT_SERVICE_ID_SET_ALL_LOG_LEVEL:
+ {
+ dlt_daemon_control_set_all_log_level(sock, daemon, daemon_local, msg, verbose);
+ break;
+ }
+ case DLT_SERVICE_ID_SET_ALL_TRACE_STATUS:
+ {
+ dlt_daemon_control_set_all_trace_status(sock, daemon, daemon_local, msg, verbose);
+ break;
+ }
default:
{
dlt_daemon_control_service_response(sock,