X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fuqmi.git;a=blobdiff_plain;f=commands.c;fp=commands.c;h=4dbdd174137d8763776d3e29efc15d9f77e7f2ab;hp=54fcbb0c4d44438c22cd130564c2d905c39f14a3;hb=b98a91bf2ef4c8189dd9b483ed530e95f79ba53c;hpb=453d8afffd406850f399a493f1f542dbc6da2b30 diff --git a/commands.c b/commands.c index 54fcbb0..4dbdd17 100644 --- a/commands.c +++ b/commands.c @@ -11,6 +11,7 @@ #include "commands.h" static struct blob_buf status; +bool single_line = false; static void no_cb(struct qmi_dev *qmi, struct qmi_request *req, struct qmi_msg *msg) { @@ -131,7 +132,7 @@ static void uqmi_print_result(struct blob_attr *data) if (!blob_len(data)) return; - str = blobmsg_format_json_indent(blob_data(data), false, 0); + str = blobmsg_format_json_indent(blob_data(data), false, single_line ? -1 : 0); if (!str) return;