[OpenWrt-Devel] [PATCH v2 4/7] add command_id to verbose output

Bjørn Mork bjorn at mork.no
Wed Apr 8 09:31:21 EDT 2015


Signed-off-by: Bjørn Mork <bjorn at mork.no>
---
 mbim-dev.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/mbim-dev.c b/mbim-dev.c
index 4474b2d..d986cbe 100644
--- a/mbim-dev.c
+++ b/mbim-dev.c
@@ -105,8 +105,10 @@ mbim_recv(struct uloop_fd *u, unsigned int events)
 			mbim_send_close_msg();
 		break;
 	case MBIM_MESSAGE_TYPE_COMMAND_DONE:
-		if (verbose)
+		if (verbose) {
+			printf("  command_id: %04X\n", le32toh(msg->command_id));
 			printf("  status_code: %04X\n", le32toh(msg->status_code));
+		}
 		if (msg->status_code && !msg->buffer_length)
 			return_code = -le32toh(msg->status_code);
 		else
-- 
2.1.4
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list