From 5be91de56c6bf32eb987aeebb1afca0fdd6abb69 Mon Sep 17 00:00:00 2001 From: Axel Lin Date: Wed, 21 Dec 2016 08:49:24 +0800 Subject: [PATCH] mqtt: Trivial error message fix Fix trivial copy-paste mistake. Signed-off-by: Axel Lin --- src/apps/mqtt/mqtt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/apps/mqtt/mqtt.c b/src/apps/mqtt/mqtt.c index fa2ba8b7..11ca6e31 100644 --- a/src/apps/mqtt/mqtt.c +++ b/src/apps/mqtt/mqtt.c @@ -1134,7 +1134,7 @@ mqtt_sub_unsub(mqtt_client_t *client, const char *topic, u8_t qos, mqtt_request_ topic_len = (u16_t)topic_strlen; /* Topic string, pkt_id, qos for subscribe */ total_len = topic_len + 2 + 2 + (sub != 0); - LWIP_ERROR("mqtt_publish: total length overflow", (total_len <= 0xFFFF), return ERR_ARG); + LWIP_ERROR("mqtt_sub_unsub: total length overflow", (total_len <= 0xFFFF), return ERR_ARG); remaining_length = (u16_t)total_len; LWIP_ASSERT("mqtt_sub_unsub: qos < 3", qos < 3);