This patch uses the format string "%.3g" instead "%.2g" for current tx power value. This is the same format string like we use to printout all supported tx power values. Signed-off-by: Alexander Aring <alex.aring@xxxxxxxxx> --- src/info.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/info.c b/src/info.c index b74442d..79b101e 100644 --- a/src/info.c +++ b/src/info.c @@ -95,7 +95,7 @@ static int print_phy_handler(struct nl_msg *msg, void *arg) } if (tb_msg[NL802154_ATTR_TX_POWER]) - printf("tx_power: %.2g\n", MBM_TO_DBM(nla_get_s32(tb_msg[NL802154_ATTR_TX_POWER]))); + printf("tx_power: %.3g\n", MBM_TO_DBM(nla_get_s32(tb_msg[NL802154_ATTR_TX_POWER]))); if (tb_msg[NL802154_ATTR_WPAN_PHY_CAPS]) { struct nlattr *tb_caps[NL802154_CAP_ATTR_MAX + 1]; -- 2.4.1 -- To unsubscribe from this list: send the line "unsubscribe linux-wpan" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html