#include <stdlib.h>
#include <string.h>
#include <sys/stat.h>
+#include <inttypes.h>
#include <common/common.h>
#include <common/defaults.h>
*stream_id = reply.handle;
}
- DBG("Relayd stream added successfully with handle %zu", reply.handle);
+ DBG("Relayd stream added successfully with handle %" PRIu64,
+ reply.handle);
error:
return ret;
/* Code flow error. Safety net. */
assert(sock);
- DBG("Relayd sending metadata of size %lu", len);
+ DBG("Relayd sending metadata of size %zu", len);
/* Send command */
ret = send_command(sock, RELAYD_SEND_METADATA, NULL, len, 0);
/* Code flow error. Safety net. */
assert(sock);
- DBG("Relayd closing stream id %zu", stream_id);
+ DBG("Relayd closing stream id %" PRIu64, stream_id);
msg.stream_id = htobe64(stream_id);
msg.last_net_seq_num = htobe64(last_net_seq_num);
ret = 0;
}
- DBG("Relayd close stream id %zu successfully", stream_id);
+ DBG("Relayd close stream id %" PRIu64 " successfully", stream_id);
error:
return ret;