projects
/
lttng-ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix: use proper format specifiers in tests (-Wformat)
[lttng-ust.git]
/
liblttng-ust
/
lttng-context-vsgid.c
diff --git
a/liblttng-ust/lttng-context-vsgid.c
b/liblttng-ust/lttng-context-vsgid.c
index 07a2ccadb756a5c35e71bb615ffbc916ad0411b1..87e11f85dce5132fbdd41be701fb3dcc30a53273 100644
(file)
--- a/
liblttng-ust/lttng-context-vsgid.c
+++ b/
liblttng-ust/lttng-context-vsgid.c
@@
-8,6
+8,7
@@
*/
#define _LGPL_SOURCE
*/
#define _LGPL_SOURCE
+#include <limits.h>
#include <stddef.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <stddef.h>
#include <sys/types.h>
#include <sys/stat.h>
@@
-69,7
+70,7
@@
size_t vsgid_get_size(struct lttng_ust_ctx_field *field, size_t offset)
{
size_t size = 0;
{
size_t size = 0;
- size += l
ib_ring_buffer_align(offset, lttng
_alignof(gid_t));
+ size += l
ttng_ust_lib_ring_buffer_align(offset, lttng_ust_rb
_alignof(gid_t));
size += sizeof(gid_t);
return size;
}
size += sizeof(gid_t);
return size;
}
@@
-82,7
+83,7
@@
void vsgid_record(struct lttng_ust_ctx_field *field,
gid_t vsgid;
vsgid = get_vsgid();
gid_t vsgid;
vsgid = get_vsgid();
- l
ib_ring_buffer_align_ctx(ctx, lttng
_alignof(vsgid));
+ l
ttng_ust_lib_ring_buffer_align_ctx(ctx, lttng_ust_rb
_alignof(vsgid));
chan->ops->event_write(ctx, &vsgid, sizeof(vsgid));
}
chan->ops->event_write(ctx, &vsgid, sizeof(vsgid));
}
@@
-100,7
+101,7
@@
int lttng_add_vsgid_to_ctx(struct lttng_ust_ctx **ctx)
int ret;
type = lttng_ust_create_type_integer(sizeof(gid_t) * CHAR_BIT,
int ret;
type = lttng_ust_create_type_integer(sizeof(gid_t) * CHAR_BIT,
- lttng_alignof(gid_t) * CHAR_BIT,
+ lttng_
ust_rb_
alignof(gid_t) * CHAR_BIT,
lttng_ust_is_signed_type(gid_t),
BYTE_ORDER, 10);
if (!type)
lttng_ust_is_signed_type(gid_t),
BYTE_ORDER, 10);
if (!type)
This page took
0.023277 seconds
and
4
git commands to generate.