samples: net: google_iot_mqtt: log actual error
Error logging was using the wrong variable. Signed-off-by: Alexey Markevich <buhhunyx@gmail.com>
This commit is contained in:
parent
2b076d8bc7
commit
d6d5ae170a
1 changed files with 1 additions and 1 deletions
|
@ -246,7 +246,7 @@ void mqtt_startup(char *hostname, int port)
|
|||
|
||||
if (err != 0) {
|
||||
LOG_ERR("Unable to get address for broker, error %d",
|
||||
res);
|
||||
err);
|
||||
return;
|
||||
}
|
||||
LOG_INF("DNS resolved for mqtt.googleapis.com:8833");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue