switch (consumer_data->type) {
case LTTNG_CONSUMER_KERNEL:
/*
- * Find out which consumerd to execute. We will
- * first try the 64-bit path, then the
- * sessiond's installation directory, and
- * fallback on the 32-bit one,
+ * Find out which consumerd to execute. We will first try the
+ * 64-bit path, then the sessiond's installation directory, and
+ * fallback on the 32-bit one,
*/
DBG3("Looking for a kernel consumer at these locations:");
DBG3(" 1) %s", consumerd64_bin);
}
/*
- * Check if the UID or GID match the session. Root user has access to
- * all sessions.
+ * Check if the UID or GID match the session. Root user has access to all
+ * sessions.
*/
-static int session_access_ok(struct ltt_session *session,
- uid_t uid, gid_t gid)
+static int session_access_ok(struct ltt_session *session, uid_t uid, gid_t gid)
{
- if (uid != session->uid && gid != session->gid
- && uid != 0) {
+ if (uid != session->uid && gid != session->gid && uid != 0) {
return 0;
} else {
return 1;
* The session list lock MUST be acquired before calling this function. Use
* session_lock_list() and session_unlock_list().
*/
-static void list_lttng_sessions(struct lttng_session *sessions,
- uid_t uid, gid_t gid)
+static void list_lttng_sessions(struct lttng_session *sessions, uid_t uid,
+ gid_t gid)
{
unsigned int i = 0;
struct ltt_session *session;