Fix: PERROR spam when `tracing` group does not exist
[lttng-tools.git] / src / common / utils.c
index 2f587bc7c49f11cfb03bdbbc59149c9994d9bd17..45aeddcf69cf8e9f431b51fade1d8a7016fc3ad6 100644 (file)
@@ -1274,8 +1274,14 @@ int utils_get_group_id(const char *name, bool warn, gid_t *gid)
                }
        }
        if (ret) {
-               PERROR("Failed to get group file entry for group name \"%s\"",
-                               name);
+               if (ret == ESRCH) {
+                       DBG("Could not find group file entry for group name '%s'",
+                                       name);
+               } else {
+                       PERROR("Failed to get group file entry for group name '%s'",
+                                       name);
+               }
+
                ret = -1;
                goto error;
        }
This page took 0.024803 seconds and 4 git commands to generate.