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:
Alexey Markevich 2020-06-01 14:17:47 +03:00 committed by Jukka Rissanen
commit d6d5ae170a

View file

@ -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");