diff options
author | Harald Welte <laforge@gnumonks.org> | 2016-12-31 20:50:30 +0100 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2017-01-01 19:51:50 +0100 |
commit | 9a3cd09fedec9701db9221f927d9c9281d9d194d (patch) | |
tree | bb61f3a7aea1f578ef3bfdc0f70a91781e8f4e80 /src | |
parent | 035e146029c443b6c1fa39d25524e5ee0f5f2916 (diff) |
fixup dpl
Diffstat (limited to 'src')
-rw-r--r-- | src/Makefile | 2 | ||||
-rw-r--r-- | src/diag_dpl.c | 9 |
2 files changed, 6 insertions, 5 deletions
diff --git a/src/Makefile b/src/Makefile index 073268d..ecff5c5 100644 --- a/src/Makefile +++ b/src/Makefile @@ -2,7 +2,7 @@ CPPFLAGS ?= -g -O0 -Wall `pkg-config --cflags libosmocore` `pkg-config --cflags LIBS ?= `pkg-config --libs libosmocore` `pkg-config --libs qmi-glib` all: osmo-qcdiag-log -MODS_LOG = gprs_rlc.o gprs_mac.o diag_gsm.o diag_log.o diag_log_gsm.o diag_log_gprs.o diag_log_umts.o diag_log_qmi.o +MODS_LOG = gprs_rlc.o gprs_mac.o diag_gsm.o diag_log.o diag_log_gsm.o diag_log_gprs.o diag_log_umts.o diag_log_qmi.o diag_dpl.o osmo-qcdiag-log: diagchar_hdlc.o diag_io.o osmo-qcdiag-log.o diag_msg.o protocol.o $(MODS_LOG) $(CC) $(CPPFLAGS) -o $@ $^ $(LIBS) diff --git a/src/diag_dpl.c b/src/diag_dpl.c index 26fd36a..72008dd 100644 --- a/src/diag_dpl.c +++ b/src/diag_dpl.c @@ -20,6 +20,7 @@ #include <osmocom/core/utils.h> #include <osmocom/core/msgb.h> +#include "diag_log.h" #include "protocol/diagcmd.h" #include "protocol/diag_log_1x.h" #include "protocol/dpl.h" @@ -42,7 +43,7 @@ int diag_dpl_reset_logging(struct diag_instance *di) int diag_dpl_get_sup_if(struct diag_instance *di) { - struct msgb *mgs = msgb_alloc_diag(); + struct msgb *msg = msgb_alloc_diag(); diag_push_subsys_hdr(msg, DIAG_SUBSYS_PS_DATA_LOGGING, DIAG_DPL_GET_SUPPORTED_IFACES); diag_transmit_msgb(di, msg); @@ -52,10 +53,10 @@ int diag_dpl_get_sup_if(struct diag_instance *di) int diag_dpl_get_if_desc(struct diag_instance *di, uint8_t iface_id) { - struct msgb *mgs = msgb_alloc_diag(); + struct msgb *msg = msgb_alloc_diag(); struct dpl_get_if_desc_req *gidr; - gidr = (struct dpl_get_if_desc_req *) mgsb_put(msg, sizeof(*gidr)); + gidr = (struct dpl_get_if_desc_req *) msgb_put(msg, sizeof(*gidr)); gidr->iface_id = iface_id; diag_push_subsys_hdr(msg, DIAG_SUBSYS_PS_DATA_LOGGING, DIAG_DPL_GET_SUPPORTED_IFACES); @@ -66,7 +67,7 @@ int diag_dpl_get_if_desc(struct diag_instance *di, uint8_t iface_id) int diag_dpl_set_if_log(struct diag_instance *di, uint8_t iface_id) { - struct msgb *mgs = msgb_alloc_diag(); + struct msgb *msg = msgb_alloc_diag(); struct dpl_set_if_log_req *silr; silr = (struct dpl_get_if_desc_req *) msgb_put(msg, sizeof(*silr)); |