examples/mqtt_test: add missing parameter
authorJunhwan Park <junhwan.park@samsung.com>
Wed, 3 May 2017 00:16:10 +0000 (09:16 +0900)
committerHeesub Shin <heesub.shin@samsung.com>
Sat, 6 May 2017 14:00:44 +0000 (23:00 +0900)
Insufficient string parameters have been added.

Change-Id: I37eefe24c3fb9771663ada9a77ff69af4e2343ec
Signed-off-by: Junhwan Park <junhwan.park@samsung.com>
apps/examples/mqtt_test/mqtt_client_pub.c
apps/examples/mqtt_test/mqtt_client_sub.c

index 0ea4a67..8efbebd 100644 (file)
@@ -624,7 +624,7 @@ int mqtt_client_pub_main(int argc, char *argv[])
 
        ret = pthread_create(&tid, &attr, (pthread_startroutine_t)mqtt_client_pub_task, &arg);
        if (ret != 0) {
-               fprintf(stderr, "Error: pthread_create() failed. (ret=%d)\n");
+               fprintf(stderr, "Error: pthread_create() failed. (ret=%d)\n", ret);
                goto done;
        }
        pthread_setname_np(tid, MQTT_CLIENT_PUB_COMMAND_NAME);
index ce2d134..98a07fd 100644 (file)
@@ -787,7 +787,7 @@ int mqtt_client_sub_main(int argc, char *argv[])
        arg.argv = argv;
        ret = pthread_create(&tid, &attr, (pthread_startroutine_t)mqtt_client_sub_task, &arg);
        if (ret != 0) {
-               fprintf(stderr, "Error: pthread_create() failed. (ret=%d)\n");
+               fprintf(stderr, "Error: pthread_create() failed. (ret=%d)\n", ret);
                goto done;
        }