--- mqtt/src/mqtt_subs.c 2012/06/20 12:43:41 1.2.2.14 +++ mqtt/src/mqtt_subs.c 2012/06/20 15:01:30 1.2.2.16 @@ -73,7 +73,7 @@ Subscribe(int sock, FILE *lf) printf("OK\n"); for (sub = args->subscr, qos = qoses; sub->sub_topic.msg_base; sub++, qos++) - printf(" + Topic %s with QoS %d subscribed %s\n", (char*) + printf(" + Topic %s with QoS %d subscribe %s\n", (char*) sub->sub_topic.msg_base, sub->sub_ret, *qos ? "done" : "failed"); free(qoses); @@ -163,7 +163,7 @@ pubRX(sched_task_t *task) /* send to output */ tim = time(NULL); strftime(szTime, sizeof szTime, "%Y-%m-%d %H:%M:%S", localtime(&tim)); - fprintf(TASK_ARG(task), "\n[%s] Message ID: 0x%04hu, Length: %u, Topic: %s\n", + fprintf(TASK_ARG(task), "\n[%s] Message ID: %04hu, Length: %u, Topic: %s\n", szTime, mid, siz, szTopic); if (data) {