Fix: PERROR spam when `tracing` group does not exist
[lttng-tools.git] / src / common / utils.c
index 7006a21581ea91f952c7d7dbe57a1095d467979e..2a20e5a8c4ab4cca1557ca917cfa2de02defd905 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.023486 seconds and 5 git commands to generate.