Fix: Relay daemon ownership and reference counting
[lttng-tools.git] / src / bin / lttng-relayd / cmd-generic.c
index 1122bfe20d1d8c81be864ccf639e57a9704a17ce..276e85bb3ded1c5d90e7ac4c71465ced39652c30 100644 (file)
@@ -1,6 +1,7 @@
 /*
  * Copyright (C) 2013 - Julien Desfossez <jdesfossez@efficios.com>
  *                      David Goulet <dgoulet@efficios.com>
+ *               2015 - Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
  *
  * This program is free software; you can redistribute it and/or modify it
  * under the terms of the GNU General Public License, version 2 only, as
@@ -17,6 +18,7 @@
  */
 
 #define _GNU_SOURCE
+#define _LGPL_SOURCE
 #include <assert.h>
 
 #include <common/common.h>
@@ -37,7 +39,7 @@ int cmd_recv(struct lttcomm_sock *sock, void *buf, size_t len)
                        DBG("Socket %d did an orderly shutdown", sock->fd);
                } else {
                        ERR("Relay didn't receive valid add_stream struct size. "
-                                       "Expected %lu, got %d", len, ret);
+                                       "Expected %zu, got %d", len, ret);
                }
                ret = -1;
                goto error;
This page took 0.024819 seconds and 5 git commands to generate.