diff options
author | Vadim Yanitskiy <axilirator@gmail.com> | 2018-09-06 01:56:08 +0700 |
---|---|---|
committer | Vadim Yanitskiy <axilirator@gmail.com> | 2018-09-06 01:56:11 +0700 |
commit | b103c0e4a3d9db7bdcb07acfe791c4e293df684b (patch) | |
tree | 65f6b842afd955c008301c14fb04e50edc09e2a6 /src/host/trxcon/trx_if.c | |
parent | 93728f6ec8421c1b662c7353d96c27bdfc23abc3 (diff) |
trxcon/trx_if.c: use proper format specifiers
The '%u' format specifier should be used for unsigned values.
Change-Id: I90200581036f8ab3969dd68664688f98cd2d3618
Diffstat (limited to 'src/host/trxcon/trx_if.c')
-rw-r--r-- | src/host/trxcon/trx_if.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/host/trxcon/trx_if.c b/src/host/trxcon/trx_if.c index e08857cd..89331f30 100644 --- a/src/host/trxcon/trx_if.c +++ b/src/host/trxcon/trx_if.c @@ -295,7 +295,7 @@ int trx_if_cmd_adjpower(struct trx_instance *trx, int db) int trx_if_cmd_setslot(struct trx_instance *trx, uint8_t tn, uint8_t type) { - return trx_ctrl_cmd(trx, 1, "SETSLOT", "%d %d", tn, type); + return trx_ctrl_cmd(trx, 1, "SETSLOT", "%u %u", tn, type); } /* @@ -321,7 +321,7 @@ int trx_if_cmd_rxtune(struct trx_instance *trx, uint16_t band_arfcn) return -ENOTSUP; } - return trx_ctrl_cmd(trx, 1, "RXTUNE", "%d", freq10 * 100); + return trx_ctrl_cmd(trx, 1, "RXTUNE", "%u", freq10 * 100); } int trx_if_cmd_txtune(struct trx_instance *trx, uint16_t band_arfcn) @@ -335,7 +335,7 @@ int trx_if_cmd_txtune(struct trx_instance *trx, uint16_t band_arfcn) return -ENOTSUP; } - return trx_ctrl_cmd(trx, 1, "TXTUNE", "%d", freq10 * 100); + return trx_ctrl_cmd(trx, 1, "TXTUNE", "%u", freq10 * 100); } /* @@ -366,7 +366,7 @@ int trx_if_cmd_measure(struct trx_instance *trx, return -ENOTSUP; } - return trx_ctrl_cmd(trx, 1, "MEASURE", "%d", freq10 * 100); + return trx_ctrl_cmd(trx, 1, "MEASURE", "%u", freq10 * 100); } static void trx_if_measure_rsp_cb(struct trx_instance *trx, char *resp) |