* remaining space left in packet and write, since mutual exclusion
* protects us from concurrent writes.
*/
-static
+static ATTR_FORMAT_PRINTF(2, 3)
int lttng_metadata_printf(struct ust_registry_session *session,
const char *fmt, ...)
{
if (entry->start.signedness) {
ret = lttng_metadata_printf(session,
- "%lld", (long long) entry->start.value);
+ "%" PRId64, entry->start.value);
} else {
ret = lttng_metadata_printf(session,
- "%llu", entry->start.value);
+ "%" PRIu64, entry->start.value);
}
if (ret) {
goto end;
} else {
if (entry->end.signedness) {
ret = lttng_metadata_printf(session,
- " ... %lld,\n",
- (long long) entry->end.value);
+ " ... %" PRId64 ",\n",
+ entry->end.value);
} else {
ret = lttng_metadata_printf(session,
- " ... %llu,\n",
+ " ... %" PRIu64 ",\n",
entry->end.value);
}
}
int ret;
char identifier[LTTNG_UST_ABI_SYM_NAME_LEN];
- if (variant->type.atype != lttng_ust_ctl_atype_variant) {
- ret = -EINVAL;
- goto end;
- }
(*iter_field)++;
sanitize_ctf_identifier(identifier, tag_name);
if (alignment) {